File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
strategy :
10
10
matrix :
11
- php : [7.4, 8.0, 8.1]
11
+ php : [8.0, 8.1]
12
12
13
13
steps :
14
14
- name : Checkout code
Original file line number Diff line number Diff line change 12
12
"homepage" : " https://medium.com/@ganieves"
13
13
}
14
14
],
15
+ "minimum-stability" : " dev" ,
15
16
"require" : {
16
17
"php" : " ^7.4 || ^8.0" ,
17
18
"ext-dom" : " *" ,
18
- "phpunit/phpunit" : " ^9.3 "
19
+ "phpunit/phpunit" : " dev-master as 9.5.99 "
19
20
},
20
21
"autoload" : {
21
22
"files" : [
Original file line number Diff line number Diff line change 4
4
<directory >tests</directory >
5
5
</testsuite >
6
6
</testsuites >
7
- </phpunit >
7
+ </phpunit >
Original file line number Diff line number Diff line change 6
6
7
7
use PHPUnit \Framework \ExpectationFailedException ;
8
8
use PHPUnit \Framework \TestCase ;
9
+ use PHPUnit \Runner \Version ;
9
10
10
11
final class VerifyTest extends TestCase
11
12
{
@@ -83,6 +84,9 @@ public function testIsInstanceOf(): void
83
84
84
85
public function testHasAttribute (): void
85
86
{
87
+ if (Version::series () <= 10 ) {
88
+ $ this ->markTestIncomplete ('assertClassHasAttribute() is deprecated and will be removed in PHPUnit 11. ' );
89
+ }
86
90
verify ('Exception ' )->classHasAttribute ('message ' );
87
91
verify ('Exception ' )->classNotHasAttribute ('fakeproperty ' );
88
92
@@ -93,6 +97,9 @@ public function testHasAttribute(): void
93
97
94
98
public function testHasStaticAttribute (): void
95
99
{
100
+ if (Version::series () <= 10 ) {
101
+ $ this ->markTestIncomplete ('assertClassHasAttribute() is deprecated and will be removed in PHPUnit 11. ' );
102
+ }
96
103
verify ('FakeClassForTesting ' )->classHasStaticAttribute ('staticProperty ' );
97
104
verify ('FakeClassForTesting ' )->classNotHasStaticAttribute ('fakeProperty ' );
98
105
}
You can’t perform that action at this time.
0 commit comments