Skip to content

Commit b61b307

Browse files
authored
Update to phpunit ^9.4.4 (#1)
* Update composer.json * Update phpunit.xml * Update SimpleCacheNullCacheTest.php
1 parent 25dac29 commit b61b307

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
}
3030
},
3131
"require-dev": {
32-
"phpunit/phpunit": "^8"
32+
"phpunit/phpunit": "^9.4.4"
3333
}
3434
}

phpunit.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
backupStaticAttributes="false"
44
bootstrap="tests/bootstrap.php"
55
colors="true"
6+
convertDeprecationsToExceptions="true"
67
convertErrorsToExceptions="true"
78
convertNoticesToExceptions="true"
89
convertWarningsToExceptions="true"
@@ -29,4 +30,4 @@
2930
<php>
3031
<const name="PHPUNIT_RUNNING" value="true"/>
3132
</php>
32-
</phpunit>
33+
</phpunit>

tests/SimpleCacheNullCacheTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ class SimpleCacheNullCacheTest extends TestCase
1212
protected NullCache $nullCache;
1313
protected array $invalidKey;
1414

15-
public function __construct(?string $name = null, array $data = [], string $dataName = '')
15+
protected function setUp(): void
1616
{
17-
parent::__construct($name, $data, $dataName);
17+
parent::setUp();
1818
$this->nullCache = new NullCache(false);
1919
$this->invalidKey = array_merge([''], str_split('{}()/\@:'));
2020
}
@@ -95,4 +95,4 @@ public function testInvalidKeyDeleteMultiple(): void
9595
return $this->nullCache->deleteMultiple(['foo', $key]);
9696
}, $invalidKeyChr);
9797
}
98-
}
98+
}

0 commit comments

Comments
 (0)