File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 2
2
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
3
xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
4
4
cacheDirectory =" dist/phpunit-cache"
5
- bootstrap =" vendor/autoload .php"
5
+ bootstrap =" tests/bootstrap .php"
6
6
beStrictAboutChangesToGlobalState =" true"
7
7
beStrictAboutOutputDuringTests =" true"
8
8
colors =" true"
22
22
<directory >tests/</directory >
23
23
<exclude >tests/AutoReview</exclude >
24
24
</testsuite >
25
+
25
26
<testsuite name =" AutoReview" >
26
27
<directory >tests/AutoReview</directory >
27
28
</testsuite >
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Webmozarts Console Parallelization package.
5
+ *
6
+ * (c) Webmozarts GmbH <office@webmozarts.com>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ declare (strict_types=1 );
13
+
14
+ // Workaround for https://github.com/symfony/symfony/issues/53812
15
+ // The problem is that FrameworkBundle registers an error handler but does not have a way to unregister it.
16
+ // The issue was closed, so we probably need to use the workaround until newer Symfony/PHPUnit versions fix it,
17
+ // or we use the regular Symfony WebTestCase instead of our custom WebRouteTestCase.
18
+ // The current setup code in FrameworkBundle will check if `ErrorHandler` is already registered and won't register it again.
19
+ use Symfony \Component \ErrorHandler \ErrorHandler ;
20
+
21
+ require __DIR__ .'/../vendor/autoload.php ' ;
22
+
23
+ ErrorHandler::register ();
You can’t perform that action at this time.
0 commit comments