Removed Udp spec for connectable

This commit is contained in:
Walter Dal Mut
2014-09-13 00:14:05 +02:00
parent 1a06353b24
commit 5a00852f73
2 changed files with 0 additions and 23 deletions
-1
View File
@@ -21,6 +21,5 @@ class UdpAdapterSpec extends ObjectBehavior
function it_should_implement_adapter_interface()
{
$this->shouldImplement("InfluxDB\Adapter\AdapterInterface");
$this->shouldImplement("InfluxDB\Adapter\ConnectableInterface");
}
}
-22
View File
@@ -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([[