From 4f94172fcbc275542d5c91ade46568827567929d Mon Sep 17 00:00:00 2001 From: Walter Dal Mut Date: Wed, 10 Jun 2015 13:38:04 +0200 Subject: [PATCH] Rename data provider with a more valid name --- tests/InfluxDB/ClientFactoryTest.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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"], + ]; + } }