File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ public function testFilesMethod()
1515
1616 $ expected = [
1717 'user ' => [
18- 'en ' => __DIR__ .' / temp/en/ user.php ' ,
19- 'nl ' => __DIR__ .' / temp/nl/ user.php ' ,
18+ 'en ' => __DIR__ .DIRECTORY_SEPARATOR . ' temp ' . DIRECTORY_SEPARATOR . ' en ' . DIRECTORY_SEPARATOR . ' user.php ' ,
19+ 'nl ' => __DIR__ .DIRECTORY_SEPARATOR . ' temp ' . DIRECTORY_SEPARATOR . ' nl ' . DIRECTORY_SEPARATOR . ' user.php ' ,
2020 ],
2121 'category ' => [
22- 'en ' => __DIR__ .' / temp/en/ category.php ' ,
23- 'nl ' => __DIR__ .' / temp/nl/ category.php ' ,
22+ 'en ' => __DIR__ .DIRECTORY_SEPARATOR . ' temp ' . DIRECTORY_SEPARATOR . ' en ' . DIRECTORY_SEPARATOR . ' category.php ' ,
23+ 'nl ' => __DIR__ .DIRECTORY_SEPARATOR . ' temp ' . DIRECTORY_SEPARATOR . ' nl ' . DIRECTORY_SEPARATOR . ' category.php ' ,
2424 ],
2525// Uncomment when starting to support vendor language files
2626// 'package::product' => [
@@ -33,14 +33,6 @@ public function testFilesMethod()
3333// ],
3434 ];
3535
36- if (stristr (PHP_OS , 'win ' ) !== false ) {
37- foreach ($ expected as $ keys => $ value ) {
38- foreach ($ expected [$ keys ] as $ key => $ content ) {
39- $ expected [$ keys ][$ key ] = str_replace ('/ ' , '\\' , $ content );
40- }
41- }
42- }
43-
4436 $ this ->assertEquals ($ expected , $ manager ->files ());
4537 }
4638
You can’t perform that action at this time.
0 commit comments