@@ -10,27 +10,27 @@ use Tester\Snapshot;
10
10
require __DIR__ . '/../bootstrap.php ' ;
11
11
12
12
putenv (Environment::UPDATE_SNAPSHOTS . '=1 ' );
13
- Snapshot::$ snapshotDir = __DIR__ . ' / snapshots ' ;
13
+ Snapshot::$ snapshotDir = __DIR__ . DIRECTORY_SEPARATOR . ' snapshots ' ;
14
14
Helpers::purge (Snapshot::$ snapshotDir );
15
15
16
16
// newly created
17
17
18
- Assert::false (file_exists (Snapshot::$ snapshotDir . ' / Assert.snapshot.update.newSnapshot.phps ' ));
18
+ Assert::false (file_exists (Snapshot::$ snapshotDir . DIRECTORY_SEPARATOR . ' Assert.snapshot.update.newSnapshot.phps ' ));
19
19
Assert::snapshot ('newSnapshot ' , ['answer ' => 42 ]);
20
- Assert::true (file_exists (Snapshot::$ snapshotDir . ' / Assert.snapshot.update.newSnapshot.phps ' ));
21
- Assert::contains ('42 ' , file_get_contents (Snapshot::$ snapshotDir . ' / Assert.snapshot.update.newSnapshot.phps ' ));
20
+ Assert::true (file_exists (Snapshot::$ snapshotDir . DIRECTORY_SEPARATOR . ' Assert.snapshot.update.newSnapshot.phps ' ));
21
+ Assert::contains ('42 ' , file_get_contents (Snapshot::$ snapshotDir . DIRECTORY_SEPARATOR . ' Assert.snapshot.update.newSnapshot.phps ' ));
22
22
23
23
// existing
24
24
25
25
file_put_contents (
26
- Snapshot::$ snapshotDir . ' / Assert.snapshot.update.updatedSnapshot.phps ' ,
26
+ Snapshot::$ snapshotDir . DIRECTORY_SEPARATOR . ' Assert.snapshot.update.updatedSnapshot.phps ' ,
27
27
'<?php return array( \'answer \' => 43); ' . PHP_EOL
28
28
);
29
29
30
- Assert::true (file_exists (Snapshot::$ snapshotDir . ' / Assert.snapshot.update.updatedSnapshot.phps ' ));
30
+ Assert::true (file_exists (Snapshot::$ snapshotDir . DIRECTORY_SEPARATOR . ' Assert.snapshot.update.updatedSnapshot.phps ' ));
31
31
Assert::snapshot ('updatedSnapshot ' , ['answer ' => 42 ]);
32
- Assert::true (file_exists (Snapshot::$ snapshotDir . ' / Assert.snapshot.update.updatedSnapshot.phps ' ));
33
- Assert::contains ('42 ' , file_get_contents (Snapshot::$ snapshotDir . ' / Assert.snapshot.update.updatedSnapshot.phps ' ));
32
+ Assert::true (file_exists (Snapshot::$ snapshotDir . DIRECTORY_SEPARATOR . ' Assert.snapshot.update.updatedSnapshot.phps ' ));
33
+ Assert::contains ('42 ' , file_get_contents (Snapshot::$ snapshotDir . DIRECTORY_SEPARATOR . ' Assert.snapshot.update.updatedSnapshot.phps ' ));
34
34
35
35
// Snapshot::$updatedSnapshots
36
36
0 commit comments