Skip to content

Commit 3a49ac2

Browse files
require phpunit/phpunit dev-master as 9.5.99 (#53)
Co-authored-by: Gustavo Nieves <[email protected]>
1 parent 5fc4c96 commit 3a49ac2

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
php: [7.4, 8.0, 8.1]
11+
php: [8.0, 8.1]
1212

1313
steps:
1414
- name: Checkout code

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
"homepage": "https://medium.com/@ganieves"
1313
}
1414
],
15+
"minimum-stability": "dev",
1516
"require": {
1617
"php": "^7.4 || ^8.0",
1718
"ext-dom": "*",
18-
"phpunit/phpunit": "^9.3"
19+
"phpunit/phpunit": "dev-master as 9.5.99"
1920
},
2021
"autoload": {
2122
"files": [

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
<directory>tests</directory>
55
</testsuite>
66
</testsuites>
7-
</phpunit>
7+
</phpunit>

tests/VerifyTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use PHPUnit\Framework\ExpectationFailedException;
88
use PHPUnit\Framework\TestCase;
9+
use PHPUnit\Runner\Version;
910

1011
final class VerifyTest extends TestCase
1112
{
@@ -83,6 +84,9 @@ public function testIsInstanceOf(): void
8384

8485
public function testHasAttribute(): void
8586
{
87+
if (Version::series() <= 10) {
88+
$this->markTestIncomplete('assertClassHasAttribute() is deprecated and will be removed in PHPUnit 11.');
89+
}
8690
verify('Exception')->classHasAttribute('message');
8791
verify('Exception')->classNotHasAttribute('fakeproperty');
8892

@@ -93,6 +97,9 @@ public function testHasAttribute(): void
9397

9498
public function testHasStaticAttribute(): void
9599
{
100+
if (Version::series() <= 10) {
101+
$this->markTestIncomplete('assertClassHasAttribute() is deprecated and will be removed in PHPUnit 11.');
102+
}
96103
verify('FakeClassForTesting')->classHasStaticAttribute('staticProperty');
97104
verify('FakeClassForTesting')->classNotHasStaticAttribute('fakeProperty');
98105
}

0 commit comments

Comments
 (0)