From 6aa668308e3a9341e9a68ecd04a69b24d91b4ebf Mon Sep 17 00:00:00 2001 From: Walter Dal Mut Date: Thu, 11 Sep 2014 09:59:33 +0200 Subject: [PATCH] Removed client interface --- spec/InfluxDB/ClientSpec.php | 11 +++-------- src/InfluxDB/Client.php | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) 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;