Skip to content

Commit 95ac6a1

Browse files
committed
Resolve deprecation warnings in PHPUnit
1 parent 73b13bf commit 95ac6a1

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

phpunit.xml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
35
backupGlobals="false"
46
backupStaticAttributes="false"
57
colors="true"
68
verbose="true"
79
processIsolation="false"
810
stopOnFailure="false">
11+
<coverage includeUncoveredFiles="true" processUncoveredFiles="true">
12+
<include>
13+
<directory suffix=".php">./src</directory>
14+
</include>
15+
<exclude>
16+
<directory suffix=".php">./src/Exceptions/</directory>
17+
</exclude>
18+
</coverage>
919
<testsuites>
1020
<testsuite name="Hashed Route Test Suite">
1121
<directory suffix="Test.php">./tests/</directory>
1222
</testsuite>
1323
</testsuites>
14-
<filter>
15-
<whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true">
16-
<directory suffix=".php">./src</directory>
17-
<exclude>
18-
<directory suffix=".php">./src/Exceptions/</directory>
19-
</exclude>
20-
</whitelist>
21-
</filter>
2224
<php>
2325
<env name="HASHED_ROUTE_DRIVER" value="hashids"/>
2426
<env name="HASHIDS_SALT" value="testSalt"/>

tests/Codecs/HashidsCodecTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function it_can_configure_an_alphabet()
6161

6262
$hash = $generator->encode(14);
6363

64-
$this->assertRegExp('/^[A-Z]*$/', $hash);
64+
$this->assertMatchesRegularExpression('/^[A-Z]*$/', $hash);
6565
}
6666

6767
/** @test */

0 commit comments

Comments
 (0)