File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
tests/unit/Codeception/Module Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
strategy :
10
10
matrix :
11
- php : [8.1, 8. 2, 8.3, 8.4]
11
+ php : [8.2, 8.3, 8.4]
12
12
13
13
steps :
14
14
- name : Checkout code
21
21
coverage : none
22
22
23
23
- name : Validate composer.json and composer.lock
24
- run : composer validate
24
+ run : composer validate --strict
25
25
26
26
- name : Install dependencies
27
27
run : composer install --prefer-dist --no-progress --no-interaction --no-suggest
Original file line number Diff line number Diff line change 22
22
],
23
23
"homepage" : " https://codeception.com/" ,
24
24
"require" : {
25
- "php" : " ^8.1 " ,
25
+ "php" : " ^8.2 " ,
26
26
"codeception/codeception" : " *@dev" ,
27
27
"codeception/lib-asserts" : " ^2.2"
28
28
},
Original file line number Diff line number Diff line change 12
12
use PHPUnit \Framework \AssertionFailedError ;
13
13
use PHPUnit \Framework \Constraint \IsEqual ;
14
14
use PHPUnit \Framework \IncompleteTestError ;
15
+ use PHPUnit \Framework \SkippedTestError ;
15
16
use PHPUnit \Framework \SkippedWithMessageException ;
17
+ use PHPUnit \Runner \Version as PHPUnitVersion ;
16
18
use RuntimeException ;
17
19
use stdClass ;
18
20
@@ -280,8 +282,12 @@ public function testMarkTestIncomplete()
280
282
281
283
public function testMarkTestSkipped ()
282
284
{
283
- $ this ->expectException (SkippedWithMessageException::class);
284
285
$ this ->expectExceptionMessage ('foobar ' );
286
+ if (PHPUnitVersion::series () < 10 ) {
287
+ $ this ->expectException (SkippedTestError::class);
288
+ } else {
289
+ $ this ->expectException (SkippedWithMessageException::class);
290
+ }
285
291
286
292
$ this ->module ->markTestSkipped ('foobar ' );
287
293
}
You can’t perform that action at this time.
0 commit comments