Skip to content

Commit 701b520

Browse files
committed
Fixed issue when tests runs under windows
1 parent 3089558 commit 701b520

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)