Removed client interface

This commit is contained in:
Walter Dal Mut
2014-09-11 10:03:31 +02:00
parent 5d2c1d852e
commit 6aa668308e
2 changed files with 4 additions and 9 deletions
+3 -8
View File
@@ -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"
]);
]);
}
}
+1 -1
View File
@@ -2,7 +2,7 @@
namespace InfluxDB;
class Client implements ClientInterface
class Client
{
private $adapter;