diff --git a/tests/Fixtures/Controller/MissingLocalesController.php b/tests/Fixtures/Controller/MissingLocalesController.php new file mode 100644 index 000000000..3ef713cda --- /dev/null +++ b/tests/Fixtures/Controller/MissingLocalesController.php @@ -0,0 +1,15 @@ +load('BeSimple\I18nRoutingBundle\Tests\Fixtures\Controller\MissingPrefixedLocalesController'); } + + /** + * @expectedException \BeSimple\I18nRoutingBundle\Routing\Exception\MissingRouteLocaleException + */ + public function testRoutesMissingLocales() + { + $loader = new AnnotatedRouteControllerLoader(new AnnotationReader()); + AnnotationRegistry::registerLoader('class_exists'); + + $loader->load('BeSimple\I18nRoutingBundle\Tests\Fixtures\Controller\MissingLocalesController'); + } }