Skip to content

Commit 0426db1

Browse files
committed
Upgrade PHPUnit - Php 7.2 required
1 parent 216f571 commit 0426db1

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^7.1",
24-
"phpunit/phpunit": "^7.0",
23+
"php": "^7.2",
24+
"phpunit/phpunit": "^8.0",
2525
"symfony/yaml": "^4.2"
2626
},
2727
"autoload": {

tests/Integration/AssertionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AssertionTest extends TestCase
1010
use ComparesSnapshotFiles;
1111
use MatchesSnapshots;
1212

13-
public function setUp()
13+
public function setUp(): void
1414
{
1515
parent::setUp();
1616

tests/Integration/MatchesSnapshotTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
use PHPUnit\Framework\ExpectationFailedException;
66
use PHPUnit\Framework\TestCase;
7-
use PHPUnit_Framework_MockObject_MockObject;
7+
use PHPUnit\Framework\MockObject\MockObject;
88
use Spatie\Snapshots\MatchesSnapshots;
99

1010
class MatchesSnapshotTest extends TestCase
1111
{
1212
use ComparesSnapshotFiles;
1313

14-
public function setUp()
14+
public function setUp(): void
1515
{
1616
parent::setUp();
1717

@@ -331,7 +331,7 @@ public function it_can_update_a_file_snapshot_with_a_different_extension()
331331
$this->assertFileNotExists($oldSnapshot);
332332
}
333333

334-
private function expectIncompleteMatchesSnapshotTest(PHPUnit_Framework_MockObject_MockObject $matchesSnapshotMock, callable $assertions)
334+
private function expectIncompleteMatchesSnapshotTest(MockObject $matchesSnapshotMock, callable $assertions)
335335
{
336336
$matchesSnapshotMock
337337
->expects($this->once())
@@ -342,7 +342,7 @@ private function expectIncompleteMatchesSnapshotTest(PHPUnit_Framework_MockObjec
342342
$matchesSnapshotMock->markTestIncompleteIfSnapshotsHaveChanged();
343343
}
344344

345-
private function expectFail(PHPUnit_Framework_MockObject_MockObject $matchesSnapshotMock)
345+
private function expectFail(MockObject $matchesSnapshotMock)
346346
{
347347
$matchesSnapshotMock
348348
->expects($this->once())
@@ -355,9 +355,9 @@ private function expectFailedMatchesSnapshotTest()
355355
}
356356

357357
/**
358-
* @return \PHPUnit_Framework_MockObject_MockObject
358+
* @return \PHPUnit\Framework\MockObject\MockObject
359359
*/
360-
private function getMatchesSnapshotMock(): PHPUnit_Framework_MockObject_MockObject
360+
private function getMatchesSnapshotMock(): MockObject
361361
{
362362
$mockMethods = [
363363
'markTestIncomplete',

tests/Unit/SnapshotTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class SnapshotTest extends TestCase
1515
/** @var \PHPUnit_Framework_MockObject_MockObject */
1616
private $driver;
1717

18-
public function setUp()
18+
public function setUp(): void
1919
{
2020
parent::setUp();
2121

0 commit comments

Comments
 (0)