/** * Test path substitution. Common path should be extracted and replaced. * * @return void */ public function testReplaceCommonSourcePathEmpty() { $test = array(array('complete' => DIRECTORY_SEPARATOR . 'baz/to/my/file.txt', 'path' => DIRECTORY_SEPARATOR . 'baz/to/my'), array('complete' => DIRECTORY_SEPARATOR . 'bar/to/my/otherFile.txt', 'path' => DIRECTORY_SEPARATOR . 'bar/to/my'), array('complete' => DIRECTORY_SEPARATOR . 'foo/to/my/sameFile.txt', 'path' => DIRECTORY_SEPARATOR . 'foo/to/my')); $result = $this->_cbErrorHandler->replaceCommonSourcePath($test); $this->assertEquals($test, $result); }