File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 14
14
<testsuite name =" Symfony Polyfill Test Suite" >
15
15
<directory >./tests/</directory >
16
16
</testsuite >
17
+ <testsuite name =" Symfony Intl Test Suite" >
18
+ <directory >./tests/Intl/</directory >
19
+ </testsuite >
17
20
</testsuites >
18
21
19
22
<filter >
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ public function startTestSuite($mainSuite)
25
25
}
26
26
self ::$ enabledPolyfills = false ;
27
27
$ SkippedTestError = class_exists ('PHPUnit\Framework\SkippedTestError ' ) ? 'PHPUnit\Framework\SkippedTestError ' : 'PHPUnit_Framework_SkippedTestError ' ;
28
- $ warnings = array ();
29
28
30
29
foreach ($ mainSuite ->tests () as $ suite ) {
31
30
$ testClass = $ suite ->getName ();
@@ -41,6 +40,7 @@ public function startTestSuite($mainSuite)
41
40
}
42
41
$ testedClass = new \ReflectionClass ($ m [1 ].$ m [2 ]);
43
42
$ bootstrap = new \SplFileObject (\dirname ($ testedClass ->getFileName ()).'/bootstrap.php ' );
43
+ $ warnings = array ();
44
44
$ defLine = null ;
45
45
46
46
foreach (new \RegexIterator ($ bootstrap , '/define\( \'/ ' ) as $ defLine ) {
@@ -109,8 +109,10 @@ function {$f['name']}{$f['signature']}
109
109
$ mainSuite ->addTest (new TestListener ($ suite ));
110
110
}
111
111
}
112
- foreach ($ warnings as $ w ) {
113
- $ mainSuite ->addTest ($ w );
112
+ if (isset ($ warnings )) {
113
+ foreach ($ warnings as $ w ) {
114
+ $ mainSuite ->addTest ($ w );
115
+ }
114
116
}
115
117
}
116
118
You can’t perform that action at this time.
0 commit comments