Cover missing class on factory method

This commit is contained in:
Walter Dal Mut
2015-06-23 20:49:44 +02:00
parent 13a419f4f5
commit b02a52e2f7
+12
View File
@@ -114,4 +114,16 @@ class ClientFactoryTest extends \PHPUnit_Framework_TestCase
["InfluxDB\\Adapter\\GuzzleAdapter"],
];
}
/**
* @expectedException InvalidArgumentException
*/
public function testInvalidProviderThrowsException()
{
$client = ClientFactory::create([
"adapter" => [
"name" => "InvalidClass",
],
]);
}
}