File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -243,22 +243,15 @@ public function addTestSuite(ReflectionClass $testClass): void
243
243
*/
244
244
public function addTestFile (string $ filename ): void
245
245
{
246
- if ( str_ends_with ( $ filename , ' .phpt ' ) && is_file ( $ filename )) {
247
- try {
246
+ try {
247
+ if ( str_ends_with ( $ filename , ' .phpt ' ) && is_file ( $ filename )) {
248
248
$ this ->addTest (new PhptTestCase ($ filename ));
249
- } catch (RunnerException $ e ) {
250
- Event \Facade::emitter ()->testRunnerTriggeredWarning (
251
- $ e ->getMessage (),
249
+
250
+ } else {
251
+ $ this ->addTestSuite (
252
+ (new TestSuiteLoader )->load ($ filename ),
252
253
);
253
254
}
254
-
255
- return ;
256
- }
257
-
258
- try {
259
- $ this ->addTestSuite (
260
- (new TestSuiteLoader )->load ($ filename ),
261
- );
262
255
} catch (RunnerException $ e ) {
263
256
Event \Facade::emitter ()->testRunnerTriggeredWarning (
264
257
$ e ->getMessage (),
You can’t perform that action at this time.
0 commit comments