Skip to content

Commit 1a1ee7f

Browse files
committed
update
1 parent c83423b commit 1a1ee7f

File tree

5 files changed

+8
-46
lines changed

5 files changed

+8
-46
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build
22
vendor
33
composer.lock
4+
.phpunit.result.cache
45
tests/files

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"license": "MIT",
1818
"require": {
19-
"php": "^5.6 || ^7.0"
19+
"php": "^7.3 || ^8.0"
2020
},
2121
"autoload": {
2222
"psr-4": {
@@ -32,6 +32,6 @@
3232
"test": "vendor/bin/phpunit"
3333
},
3434
"require-dev": {
35-
"phpunit/phpunit": "^5.7 || ^7.0"
35+
"phpunit/phpunit": "^9.0"
3636
}
3737
}

phpunit.xml.dist

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
123
<testsuites>
13-
<testsuite name="League Test Suite">
4+
<testsuite name="Test Suite">
145
<directory>tests</directory>
156
</testsuite>
167
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
22-
<logging>
23-
<log type="tap" target="build/report.tap"/>
24-
<log type="junit" target="build/report.junit.xml"/>
25-
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
26-
<log type="coverage-text" target="build/coverage.txt"/>
27-
<log type="coverage-clover" target="build/logs/clover.xml"/>
28-
</logging>
29-
</phpunit>
8+
</phpunit>

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ class TestCase extends PHPUnitTestCase
88
{
99
const DIR_WORK = __DIR__.'/files/';
1010

11-
public function setUp()
11+
public function setUp(): void
1212
{
1313
if (! is_dir(self::DIR_WORK)) {
1414
mkdir(self::DIR_WORK);
1515
}
1616
}
1717

18-
public function tearDown()
18+
public function tearDown(): void
1919
{
2020
$files = array_diff(scandir(self::DIR_WORK), ['.', '..']);
2121

0 commit comments

Comments
 (0)