diff --git a/spec/InfluxDB/ClientSpec.php b/spec/InfluxDB/ClientSpec.php index fc34b91ec..ce1918e31 100644 --- a/spec/InfluxDB/ClientSpec.php +++ b/spec/InfluxDB/ClientSpec.php @@ -9,17 +9,12 @@ class ClientSpec extends ObjectBehavior { function let(\InfluxDB\Adapter\AdapterInterface $adapter) { - $this->setAdapter($adapter); + $this->setAdapter($adapter); } function it_is_initializable() { $this->shouldHaveType('InfluxDB\Client'); } - - function it_should_implement_client_interface() - { - $this->shouldImplement("InfluxDB\ClientInterface"); - } function it_should_send_data(\InfluxDB\Adapter\AdapterInterface $adapter) { @@ -28,12 +23,12 @@ class ClientSpec extends ObjectBehavior "columns" => ["author", "title"], "points" => [ ["Guccini", "Autogrill"] - ] + ] ]])->shouldBeCalledTimes(1); $this->mark("video.search", [ "author" => "Guccini", "title" => "Autogrill" - ]); + ]); } } diff --git a/src/InfluxDB/Client.php b/src/InfluxDB/Client.php index 7afed5d2a..e92a889fb 100644 --- a/src/InfluxDB/Client.php +++ b/src/InfluxDB/Client.php @@ -2,7 +2,7 @@ namespace InfluxDB; -class Client implements ClientInterface +class Client { private $adapter;