Rename data provider with a more valid name

This commit is contained in:
Walter Dal Mut
2015-06-10 15:54:06 +02:00
parent 270154fd94
commit 4f94172fcb
+9 -9
View File
@@ -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"],
];
}
}