diff --git a/spec/InfluxDB/Adapter/UdpAdapterSpec.php b/spec/InfluxDB/Adapter/UdpAdapterSpec.php index 5d1aefc6a..48e14198f 100644 --- a/spec/InfluxDB/Adapter/UdpAdapterSpec.php +++ b/spec/InfluxDB/Adapter/UdpAdapterSpec.php @@ -21,6 +21,5 @@ class UdpAdapterSpec extends ObjectBehavior function it_should_implement_adapter_interface() { $this->shouldImplement("InfluxDB\Adapter\AdapterInterface"); - $this->shouldImplement("InfluxDB\Adapter\ConnectableInterface"); } } diff --git a/spec/InfluxDB/ClientSpec.php b/spec/InfluxDB/ClientSpec.php index 888f21b8c..a0ee5ae02 100644 --- a/spec/InfluxDB/ClientSpec.php +++ b/spec/InfluxDB/ClientSpec.php @@ -20,28 +20,6 @@ class ClientSpec extends ObjectBehavior $this->shouldHaveType('InfluxDB\Client'); } - function it_should_be_connectable(ConnectableInterface $adapter) - { - $adapter->connect()->willReturn(true)->shouldBeCalledTimes(1); - - $this->setAdapter($adapter); - $this->connect()->shouldReturn(true); - } - - function it_should_be_disconnectable(ConnectableInterface $adapter) - { - $adapter->disconnect()->willReturn(true)->shouldBeCalledTimes(1); - - $this->setAdapter($adapter); - $this->disconnect()->shouldReturn(true); - } - - function it_should_not_call_connect(AdapterInterface $adapter) - { - $this->setAdapter($adapter); - $this->connect()->shouldReturn(false); - } - function it_should_send_data(AdapterInterface $adapter) { $adapter->send([[