Skip to content

Commit

Permalink
fix test bundle automation test
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoiriert committed Sep 25, 2024
1 parent d429abd commit 682def5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions packages/tester-bundle/Tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

use Symfony\Component\ErrorHandler\ErrorHandler;

$phpunitsHandler = set_error_handler(static fn () => null);

Check failure on line 7 in packages/tester-bundle/Tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / PHPStan

Parameter #1 $callback of function set_error_handler expects (callable(int, string, string, int): bool)|null, Closure(): null given.
restore_exception_handler();
ErrorHandler::register(null);
set_error_handler($phpunitsHandler);
2 changes: 1 addition & 1 deletion packages/tester-bundle/Tests/fixtures/config/routing.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test:
resource: '@DrawTesterBundle/Tests/Mock/Controller/TestController.php'
type: 'annotation'
type: 'attribute'
format: 'json'
2 changes: 1 addition & 1 deletion packages/tester-bundle/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="vendor/autoload.php"
bootstrap="Tests/bootstrap.php"
>
<php>
<ini name="error_reporting" value="-1" />
Expand Down

0 comments on commit 682def5

Please sign in to comment.