Skip to content

Commit b45adbe

Browse files
committed
Fixed PHPUnit.
1 parent 9bf6b5e commit b45adbe

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"psr/simple-cache": "^1.0"
2424
},
2525
"require-dev": {
26-
"phpunit/phpunit": "^7.0"
26+
"phpunit/phpunit": "^9.0"
2727
},
2828
"license": "MIT",
2929
"authors": [

tests/Unit/Cache/ArrayCacheTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ArrayCacheTest extends BaseTest
1111
{
1212
private $arrayCache;
1313

14-
public function setUp()
14+
public function setUp(): void
1515
{
1616
parent::setUp();
1717
$this->arrayCache = new ArrayCache();
@@ -108,4 +108,4 @@ public function shouldHas(): void
108108
$this->arrayCache->set('foo', 'bar');
109109
self::assertTrue($this->arrayCache->has('foo'));
110110
}
111-
}
111+
}

tests/Unit/Gtid/GtidCollectionTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class GtidCollectionTest extends BaseTest
2222
/**
2323
* @throws GtidException
2424
*/
25-
public function setUp()
25+
public function setUp(): void
2626
{
2727
parent::setUp();
2828

@@ -55,4 +55,4 @@ public function shouldCreateCollection()
5555
{
5656
$this->assertInstanceOf(GtidCollection::class, GtidCollection::makeCollectionFromString('9b1c8d18-2a76-11e5-a26b-000c2976f3f3:1-177592'));
5757
}
58-
}
58+
}

tests/Unit/Repository/MySQLRepositoryTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MySQLRepositoryTest extends BaseTest
2626
*/
2727
private $connection;
2828

29-
public function setUp()
29+
public function setUp(): void
3030
{
3131
parent::setUp();
3232

@@ -125,4 +125,4 @@ public function shouldReconnect(): void
125125
$this->mySQLRepositoryTest->isCheckSum();
126126
self::assertTrue(true);
127127
}
128-
}
128+
}

0 commit comments

Comments
 (0)