@@ -34,7 +34,7 @@ public function it_can_create_a_snapshot_from_a_string()
3434 $ mockTrait ->assertMatchesSnapshot ('Foo ' );
3535
3636 $ this ->assertSnapshotMatchesExample (
37- 'MatchesSnapshotTest__it_can_match_an_existing_string_snapshot .php ' ,
37+ 'MatchesSnapshotTest__it_can_match_an_existing_string_snapshot__1 .php ' ,
3838 'snapshot.php '
3939 );
4040 }
@@ -49,7 +49,7 @@ public function it_can_create_a_snapshot_from_xml()
4949 $ mockTrait ->assertMatchesXmlSnapshot ('<foo><bar>Baz</bar></foo> ' );
5050
5151 $ this ->assertSnapshotMatchesExample (
52- 'MatchesSnapshotTest__it_can_create_a_snapshot_from_xml .xml ' ,
52+ 'MatchesSnapshotTest__it_can_create_a_snapshot_from_xml__1 .xml ' ,
5353 'snapshot.xml '
5454 );
5555 }
@@ -64,7 +64,7 @@ public function it_can_create_a_snapshot_from_json()
6464 $ mockTrait ->assertMatchesJsonSnapshot ('{"foo":"foo","bar":"bar","baz":"baz"} ' );
6565
6666 $ this ->assertSnapshotMatchesExample (
67- 'MatchesSnapshotTest__it_can_create_a_snapshot_from_json .json ' ,
67+ 'MatchesSnapshotTest__it_can_create_a_snapshot_from_json__1 .json ' ,
6868 'snapshot.json '
6969 );
7070 }
@@ -135,7 +135,7 @@ public function it_can_update_a_string_snapshot()
135135 $ mockTrait ->assertMatchesSnapshot ('Foo ' );
136136
137137 $ this ->assertSnapshotMatchesExample (
138- 'MatchesSnapshotTest__it_can_update_a_string_snapshot .php ' ,
138+ 'MatchesSnapshotTest__it_can_update_a_string_snapshot__1 .php ' ,
139139 'snapshot.php '
140140 );
141141 }
@@ -152,7 +152,7 @@ public function it_can_update_a_xml_snapshot()
152152 $ mockTrait ->assertMatchesXmlSnapshot ('<foo><bar>Baz</bar></foo> ' );
153153
154154 $ this ->assertSnapshotMatchesExample (
155- 'MatchesSnapshotTest__it_can_update_a_xml_snapshot .xml ' ,
155+ 'MatchesSnapshotTest__it_can_update_a_xml_snapshot__1 .xml ' ,
156156 'snapshot.xml '
157157 );
158158 }
@@ -169,7 +169,7 @@ public function it_can_update_a_json_snapshot()
169169 $ mockTrait ->assertMatchesJsonSnapshot ('{"foo":"foo","bar":"bar","baz":"baz"} ' );
170170
171171 $ this ->assertSnapshotMatchesExample (
172- 'MatchesSnapshotTest__it_can_update_a_json_snapshot .json ' ,
172+ 'MatchesSnapshotTest__it_can_update_a_json_snapshot__1 .json ' ,
173173 'snapshot.json '
174174 );
175175 }
@@ -201,7 +201,7 @@ protected function getMatchesSnapshotMock(): PHPUnit_Framework_MockObject_MockOb
201201 $ matchesSnapshotMock
202202 ->expects ($ this ->any ())
203203 ->method ('getSnapshotId ' )
204- ->willReturn ('MatchesSnapshotTest__ ' .$ this ->getName ());
204+ ->willReturn ('MatchesSnapshotTest__ ' .$ this ->getName (). ' __1 ' );
205205
206206 $ matchesSnapshotMock
207207 ->expects ($ this ->any ())
0 commit comments