Skip to content

Commit d518d1c

Browse files
committed
Downgrade to PHPUnit 8
1 parent 58dc250 commit d518d1c

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"require-dev": {
2424
"orchestra/testbench": "4.*|5.*|6.*",
25-
"phpunit/phpunit": "^8.0|^9.0"
25+
"phpunit/phpunit": "^8.0"
2626
},
2727
"autoload": {
2828
"psr-4": {

phpunit.xml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
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"
2+
<phpunit bootstrap="vendor/autoload.php"
53
backupGlobals="false"
64
backupStaticAttributes="false"
75
colors="true"
86
verbose="true"
97
processIsolation="false"
108
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>
199
<testsuites>
2010
<testsuite name="Hashed Route Test Suite">
2111
<directory suffix="Test.php">./tests/</directory>
2212
</testsuite>
2313
</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>
2422
<php>
2523
<env name="HASHED_ROUTE_DRIVER" value="hashids"/>
2624
<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->assertMatchesRegularExpression('/^[A-Z]*$/', $hash);
64+
$this->assertRegExp('/^[A-Z]*$/', $hash);
6565
}
6666

6767
/** @test */

0 commit comments

Comments
 (0)