44
55use PHPUnit \Framework \ExpectationFailedException ;
66use PHPUnit \Framework \TestCase ;
7- use PHPUnit_Framework_MockObject_MockObject ;
7+ use PHPUnit \ Framework \ MockObject \ MockObject ;
88use Spatie \Snapshots \MatchesSnapshots ;
99
1010class 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 ' ,
0 commit comments