Skip to content

Commit 98c4a04

Browse files
committed
Fixed PHPUnit deprecation warning
1 parent b7159a5 commit 98c4a04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"require-dev": {
1111
"phpstan/phpstan": "0.12.85",
12-
"irstea/phpunit-shim": "^7.5 || ^8.0",
12+
"irstea/phpunit-shim": "^9.5",
1313
"phpstan/extension-installer": "^1.0",
1414
"phpstan/phpstan-strict-rules": "^0.12.4"
1515
},

tests/phpunit/tag/CompoundTagTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testIteration() : void{
4444
*/
4545
foreach($tag as $name => $value){
4646
// we used to get other stuff when iterating, like the tag's __name property (before Iterator was implemented by CompoundTag)
47-
self::assertRegExp('/hello[0-9]/', $name);
47+
self::assertMatchesRegularExpression('/hello[0-9]/', $name);
4848
self::assertInstanceOf(StringTag::class, $value);
4949
++$count;
5050
}

0 commit comments

Comments
 (0)