@@ -19,14 +19,14 @@ public function setUp(): void
1919 $ this ->setUpComparesSnapshotFiles ();
2020
2121 $ 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 ' ]);
2323
2424 if ($ updateArgument ) {
2525 unset($ _SERVER ['argv ' ][$ updateArgument ]);
2626 }
2727
28- if ($ noCreateArgument ) {
29- unset($ _SERVER ['argv ' ][$ noCreateArgument ]);
28+ if ($ withoutCreatingArgument ) {
29+ unset($ _SERVER ['argv ' ][$ withoutCreatingArgument ]);
3030 }
3131 }
3232
@@ -468,14 +468,14 @@ private function getMatchesSnapshotMock(): MockObject
468468 /** @test */
469469 public function it_doesnt_create_a_regular_snapshot_and_mismatches_if_asked ()
470470 {
471- $ _SERVER ['argv ' ][] = '--no-create -snapshots ' ;
471+ $ _SERVER ['argv ' ][] = '--without-creating -snapshots ' ;
472472
473473 $ mockTrait = $ this ->getMatchesSnapshotMock ();
474474
475475 $ this ->expectFail (
476476 $ mockTrait ,
477477 "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. '
479479 );
480480
481481 $ mockTrait ->assertMatchesSnapshot ('Bar ' );
@@ -484,14 +484,14 @@ public function it_doesnt_create_a_regular_snapshot_and_mismatches_if_asked()
484484 /** @test */
485485 public function it_doesnt_create_a_file_snapshot_and_mismatches_if_asked ()
486486 {
487- $ _SERVER ['argv ' ][] = '--no-create -snapshots ' ;
487+ $ _SERVER ['argv ' ][] = '--without-creating -snapshots ' ;
488488
489489 $ mockTrait = $ this ->getMatchesSnapshotMock ();
490490
491491 $ this ->expectFail (
492492 $ mockTrait ,
493493 "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. '
495495 );
496496
497497 $ mockTrait ->assertMatchesFileSnapshot (__DIR__ .'/stubs/test_files/friendly_man.jpg ' );
0 commit comments