Skip to content

Commit

Permalink
minor amends
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed May 28, 2016
1 parent 8540a51 commit a145818
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions tests/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand All @@ -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());
}

Expand Down

0 comments on commit a145818

Please sign in to comment.