From 682def5b3734917b158510867954c635384228b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Poirier=20Th=C3=A9or=C3=AAt?= Date: Wed, 25 Sep 2024 15:42:57 -0400 Subject: [PATCH] fix test bundle automation test --- packages/tester-bundle/Tests/bootstrap.php | 10 ++++++++++ .../tester-bundle/Tests/fixtures/config/routing.yaml | 2 +- packages/tester-bundle/phpunit.xml.dist | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 packages/tester-bundle/Tests/bootstrap.php 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" >