diff --git a/src/test/php/PDepend/Input/ExcludePathFilterTest.php b/src/test/php/PDepend/Input/ExcludePathFilterTest.php index 369334879d..6632dae6fc 100644 --- a/src/test/php/PDepend/Input/ExcludePathFilterTest.php +++ b/src/test/php/PDepend/Input/ExcludePathFilterTest.php @@ -136,7 +136,7 @@ public function testWindowsPathAsFilterPatternNotMatchesPartial() */ public function testExcludePathFilterRejectsFile() { - $actual = $this->createFilteredFileList(array('/package2.php')); + $actual = $this->createFilteredFileList(array(DIRECTORY_SEPARATOR . 'package2.php')); $expected = array('package1.php', 'package3.php'); $this->assertEquals($expected, $actual); @@ -149,7 +149,7 @@ public function testExcludePathFilterRejectsFile() */ public function testExcludePathFilterRejectsFiles() { - $actual = $this->createFilteredFileList(array('/package2.php', '*1.php')); + $actual = $this->createFilteredFileList(array(DIRECTORY_SEPARATOR . 'package2.php', '*1.php')); $expected = array('package3.php'); $this->assertEquals($expected, $actual); @@ -162,7 +162,7 @@ public function testExcludePathFilterRejectsFiles() */ public function testExcludePathFilterRejectsDirectory() { - $actual = $this->createFilteredFileList(array('/package1')); + $actual = $this->createFilteredFileList(array(DIRECTORY_SEPARATOR . 'package1')); $expected = array('file2.php', 'file3.php'); $this->assertEquals($expected, $actual); @@ -175,7 +175,7 @@ public function testExcludePathFilterRejectsDirectory() */ public function testExcludePathFilterRejectsDirectories() { - $actual = $this->createFilteredFileList(array('/package1', 'package3')); + $actual = $this->createFilteredFileList(array(DIRECTORY_SEPARATOR . 'package1', 'package3')); $expected = array('file2.php'); $this->assertEquals($expected, $actual); @@ -188,7 +188,7 @@ public function testExcludePathFilterRejectsDirectories() */ public function testExcludePathFilterRejectsFilesAndDirectories() { - $actual = $this->createFilteredFileList(array('/package1', '/file3.php')); + $actual = $this->createFilteredFileList(array(DIRECTORY_SEPARATOR . 'package1', DIRECTORY_SEPARATOR . 'file3.php')); $expected = array('file2.php'); $this->assertEquals($expected, $actual);