diff --git a/tests/InfluxDB/ClientFactoryTest.php b/tests/InfluxDB/ClientFactoryTest.php index 6d61c8960..e89d6d866 100644 --- a/tests/InfluxDB/ClientFactoryTest.php +++ b/tests/InfluxDB/ClientFactoryTest.php @@ -51,7 +51,7 @@ class ClientFactoryTest extends \PHPUnit_Framework_TestCase /** * @group factory * @group tcp - * @dataProvider getTcpAdapters + * @dataProvider getHttpAdapters */ public function testCreateTcpClient($adapter) { @@ -75,16 +75,9 @@ class ClientFactoryTest extends \PHPUnit_Framework_TestCase $this->assertEquals("pass", $client->getAdapter()->getOptions()->getPassword()); } - public function getTcpAdapters() - { - return [ - ["InfluxDB\\Adapter\\GuzzleAdapter"], - ]; - } - /** * @group factory - * @dataProvider getTcpAdapters + * @dataProvider getHttpAdapters */ public function testCreateTcpClientWithFilter($adapter) { @@ -107,4 +100,11 @@ class ClientFactoryTest extends \PHPUnit_Framework_TestCase $this->assertEquals("user", $client->getAdapter()->getOptions()->getUsername()); $this->assertEquals("pass", $client->getAdapter()->getOptions()->getPassword()); } + + public function getHttpAdapters() + { + return [ + ["InfluxDB\\Adapter\\GuzzleAdapter"], + ]; + } }