@@ -19,14 +19,14 @@ public function setUp(): void
19
19
$ this ->setUpComparesSnapshotFiles ();
20
20
21
21
$ updateArgument = array_search ('--update-snapshots ' , $ _SERVER ['argv ' ]);
22
- $ noCreateArgument = array_search ('--no-create -snapshots ' , $ _SERVER ['argv ' ]);
22
+ $ withoutCreatingArgument = array_search ('--without-creating -snapshots ' , $ _SERVER ['argv ' ]);
23
23
24
24
if ($ updateArgument ) {
25
25
unset($ _SERVER ['argv ' ][$ updateArgument ]);
26
26
}
27
27
28
- if ($ noCreateArgument ) {
29
- unset($ _SERVER ['argv ' ][$ noCreateArgument ]);
28
+ if ($ withoutCreatingArgument ) {
29
+ unset($ _SERVER ['argv ' ][$ withoutCreatingArgument ]);
30
30
}
31
31
}
32
32
@@ -468,14 +468,14 @@ private function getMatchesSnapshotMock(): MockObject
468
468
/** @test */
469
469
public function it_doesnt_create_a_regular_snapshot_and_mismatches_if_asked ()
470
470
{
471
- $ _SERVER ['argv ' ][] = '--no-create -snapshots ' ;
471
+ $ _SERVER ['argv ' ][] = '--without-creating -snapshots ' ;
472
472
473
473
$ mockTrait = $ this ->getMatchesSnapshotMock ();
474
474
475
475
$ this ->expectFail (
476
476
$ mockTrait ,
477
477
"Snapshot \"MatchesSnapshotTest__it_doesnt_create_a_regular_snapshot_and_mismatches_if_asked__1.txt \" does not exist. \n" .
478
- 'You can automatically create it by removing `-d --no-create -snapshots` of PHPUnit \'s CLI arguments. '
478
+ 'You can automatically create it by removing `-d --without-creating -snapshots` of PHPUnit \'s CLI arguments. '
479
479
);
480
480
481
481
$ mockTrait ->assertMatchesSnapshot ('Bar ' );
@@ -484,14 +484,14 @@ public function it_doesnt_create_a_regular_snapshot_and_mismatches_if_asked()
484
484
/** @test */
485
485
public function it_doesnt_create_a_file_snapshot_and_mismatches_if_asked ()
486
486
{
487
- $ _SERVER ['argv ' ][] = '--no-create -snapshots ' ;
487
+ $ _SERVER ['argv ' ][] = '--without-creating -snapshots ' ;
488
488
489
489
$ mockTrait = $ this ->getMatchesSnapshotMock ();
490
490
491
491
$ this ->expectFail (
492
492
$ mockTrait ,
493
493
"Snapshot \"MatchesSnapshotTest__it_doesnt_create_a_file_snapshot_and_mismatches_if_asked__1.jpg_failed.jpg \" does not exist. \n" .
494
- 'You can automatically create it by removing `-d --no-create -snapshots` of PHPUnit \'s CLI arguments. '
494
+ 'You can automatically create it by removing `-d --without-creating -snapshots` of PHPUnit \'s CLI arguments. '
495
495
);
496
496
497
497
$ mockTrait ->assertMatchesFileSnapshot (__DIR__ .'/stubs/test_files/friendly_man.jpg ' );
0 commit comments