diff --git a/test/classes/PMA_Error_test.php b/test/classes/PMA_Error_test.php index 43f50dc9e8f9..75d7515aabe6 100644 --- a/test/classes/PMA_Error_test.php +++ b/test/classes/PMA_Error_test.php @@ -79,7 +79,8 @@ public function testSetLine() public function testSetFile() { $this->object->setFile('./pma.txt'); - $this->assertStringStartsWith('./../../', $this->object->getFile()); + $this->assertStringStartsWith(implode( + DIRECTORY_SEPARATOR, array('.', '..', '..')), $this->object->getFile()); } /**