Skip to content

Commit a145818

Browse files
committed
minor amends
1 parent 8540a51 commit a145818

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

tests/ManagerTest.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)