File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
tests/unit/Codeception/Module Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2323 "homepage" : " https://codeception.com/" ,
2424 "require" : {
2525 "php" : " ^8.1" ,
26- "codeception/codeception" : " *@dev" ,
26+ "codeception/codeception" : " dev-main | *@dev" ,
2727 "codeception/lib-asserts" : " ^2.2"
2828 },
2929 "conflict" : {
Original file line number Diff line number Diff line change 1212use PHPUnit \Framework \AssertionFailedError ;
1313use PHPUnit \Framework \Constraint \IsEqual ;
1414use PHPUnit \Framework \IncompleteTestError ;
15+ use PHPUnit \Framework \SkippedTestError ;
1516use PHPUnit \Framework \SkippedWithMessageException ;
17+ use PHPUnit \Runner \Version as PHPUnitVersion ;
1618use RuntimeException ;
1719use stdClass ;
1820
@@ -280,8 +282,12 @@ public function testMarkTestIncomplete()
280282
281283 public function testMarkTestSkipped ()
282284 {
283- $ this ->expectException (SkippedWithMessageException::class);
284285 $ this ->expectExceptionMessage ('foobar ' );
286+ if (PHPUnitVersion::series () < 10 ) {
287+ $ this ->expectException (SkippedTestError::class);
288+ } else {
289+ $ this ->expectException (SkippedWithMessageException::class);
290+ }
285291
286292 $ this ->module ->markTestSkipped ('foobar ' );
287293 }
You can’t perform that action at this time.
0 commit comments