Cover more factory method invalid arguments

This commit is contained in:
Walter Dal Mut
2015-06-24 07:58:54 +02:00
parent 44551a58e9
commit c7c3690e0b
+8 -2
View File
@@ -117,13 +117,19 @@ class ClientFactoryTest extends \PHPUnit_Framework_TestCase
/**
* @expectedException InvalidArgumentException
* @dataProvider getInvalidClasses
*/
public function testInvalidProviderThrowsException()
public function testInvalidProviderThrowsException($class)
{
$client = ClientFactory::create([
"adapter" => [
"name" => "InvalidClass",
"name" => $class,
],
]);
}
public function getInvalidClasses()
{
return [["InvalidClass"],["stdClass"]];
}
}