diff --git a/tests/unit/ClientFactoryTest.php b/tests/unit/ClientFactoryTest.php index a7f0e44f19..91031eb5da 100644 --- a/tests/unit/ClientFactoryTest.php +++ b/tests/unit/ClientFactoryTest.php @@ -114,4 +114,16 @@ class ClientFactoryTest extends \PHPUnit_Framework_TestCase ["InfluxDB\\Adapter\\GuzzleAdapter"], ]; } + + /** + * @expectedException InvalidArgumentException + */ + public function testInvalidProviderThrowsException() + { + $client = ClientFactory::create([ + "adapter" => [ + "name" => "InvalidClass", + ], + ]); + } }