示例#1
0
 /**
  * Tests that the processing error class extracts the source filename from
  * a given exception message,
  *
  * @param string $message The original exception message
  *
  * @return void
  * @dataProvider getParserExceptionMessages
  */
 public function testGetFileReturnsExpectedFileName($message)
 {
     $processingError = new ProcessingError($message);
     $this->assertEquals('/tmp/foo.php', $processingError->getFile());
 }