File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 5252 $ filesystem ->deleteDirectory ('/ ' );
5353 $ filesystem ->createDirectory ('/ ' );
5454
55- $ storage = new Storage ('tests/Fixtures/Saloon ' );
55+ $ path = 'some ' . DIRECTORY_SEPARATOR . 'other ' . DIRECTORY_SEPARATOR . 'directories ' . DIRECTORY_SEPARATOR . 'example.txt ' ;
56+
57+ $ storage = new Storage ('tests ' . DIRECTORY_SEPARATOR . 'Fixtures ' . DIRECTORY_SEPARATOR . 'Saloon ' );
5658
57- expect ($ storage ->exists (' some/other/directories/example.txt ' ))->toBeFalse ();
59+ expect ($ storage ->exists ($ path ))->toBeFalse ();
5860
59- $ storage ->put (' some/other/directories/example.txt ' , 'Hello World ' );
61+ $ storage ->put ($ path , 'Hello World ' );
6062
61- expect ($ storage ->exists (' some/other/directories/example.txt ' ))->toBeTrue ();
63+ expect ($ storage ->exists ($ path ))->toBeTrue ();
6264
63- expect ($ storage ->get (' some/other/directories/example.txt ' ))->toEqual ('Hello World ' );
65+ expect ($ storage ->get ($ path ))->toEqual ('Hello World ' );
6466});
You can’t perform that action at this time.
0 commit comments