diff --git a/tests/Doctrine/Tests/ORM/ORMInvalidArgumentExceptionTest.php b/tests/Doctrine/Tests/ORM/ORMInvalidArgumentExceptionTest.php new file mode 100644 index 000000000..81f22e2b7 --- /dev/null +++ b/tests/Doctrine/Tests/ORM/ORMInvalidArgumentExceptionTest.php @@ -0,0 +1,60 @@ +getMessage()); + } + + /** + * @return string[][] + */ + public function invalidEntityNames() + { + return [ + [null, 'Entity name must be a string, NULL given'], + [true, 'Entity name must be a string, boolean given'], + [123, 'Entity name must be a string, integer given'], + [123.45, 'Entity name must be a string, double given'], + [new \stdClass(), 'Entity name must be a string, object given'], + ]; + } +}