From a1458186d8ea47df293789174b697eef2c78c3c0 Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Sat, 28 May 2016 10:43:45 +0200 Subject: [PATCH] minor amends --- tests/ManagerTest.php | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/tests/ManagerTest.php b/tests/ManagerTest.php index 5345388..561a335 100644 --- a/tests/ManagerTest.php +++ b/tests/ManagerTest.php @@ -15,12 +15,12 @@ public function testFilesMethod() $expected = [ 'user' => [ - 'en' => __DIR__.'/temp/en/user.php', - 'nl' => __DIR__.'/temp/nl/user.php', + 'en' => __DIR__.DIRECTORY_SEPARATOR.'temp'.DIRECTORY_SEPARATOR.'en'.DIRECTORY_SEPARATOR.'user.php', + 'nl' => __DIR__.DIRECTORY_SEPARATOR.'temp'.DIRECTORY_SEPARATOR.'nl'.DIRECTORY_SEPARATOR.'user.php', ], 'category' => [ - 'en' => __DIR__.'/temp/en/category.php', - 'nl' => __DIR__.'/temp/nl/category.php', + 'en' => __DIR__.DIRECTORY_SEPARATOR.'temp'.DIRECTORY_SEPARATOR.'en'.DIRECTORY_SEPARATOR.'category.php', + 'nl' => __DIR__.DIRECTORY_SEPARATOR.'temp'.DIRECTORY_SEPARATOR.'nl'.DIRECTORY_SEPARATOR.'category.php', ], // Uncomment when starting to support vendor language files // 'package::product' => [ @@ -33,14 +33,6 @@ public function testFilesMethod() // ], ]; - if (stristr(PHP_OS, 'win') !== false) { - foreach ($expected as $keys => $value) { - foreach ($expected[$keys] as $key => $content) { - $expected[$keys][$key] = str_replace('/', '\\', $content); - } - } - } - $this->assertEquals($expected, $manager->files()); }