Skip to content

Commit 8540a51

Browse files
committed
Merge branch 'fix-testing-under-windows' of https://github.com/fergthh/laravel-langman into fergthh-fix-testing-under-windows
2 parents b5ac1fe + 2840204 commit 8540a51

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/ManagerTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ 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+
3644
$this->assertEquals($expected, $manager->files());
3745
}
3846

0 commit comments

Comments
 (0)