diff --git a/packages/tester-bundle/Tests/bootstrap.php b/packages/tester-bundle/Tests/bootstrap.php new file mode 100644 index 000000000..daaed0949 --- /dev/null +++ b/packages/tester-bundle/Tests/bootstrap.php @@ -0,0 +1,10 @@ + null); +restore_exception_handler(); +ErrorHandler::register(null); +set_error_handler($phpunitsHandler); diff --git a/packages/tester-bundle/Tests/fixtures/config/routing.yaml b/packages/tester-bundle/Tests/fixtures/config/routing.yaml index 2d9c7bab0..6a1919fd2 100644 --- a/packages/tester-bundle/Tests/fixtures/config/routing.yaml +++ b/packages/tester-bundle/Tests/fixtures/config/routing.yaml @@ -1,4 +1,4 @@ test: resource: '@DrawTesterBundle/Tests/Mock/Controller/TestController.php' - type: 'annotation' + type: 'attribute' format: 'json' diff --git a/packages/tester-bundle/phpunit.xml.dist b/packages/tester-bundle/phpunit.xml.dist index 08fb1e3fa..8517fc66a 100644 --- a/packages/tester-bundle/phpunit.xml.dist +++ b/packages/tester-bundle/phpunit.xml.dist @@ -11,7 +11,7 @@ convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" - bootstrap="vendor/autoload.php" + bootstrap="Tests/bootstrap.php" >