public function testTestCreateForUnparsableFile()
{
$exception = ParseExceptionFactory::createForUnparsableFile('foo');
$this->assertEquals('Could not parse the file "foo".', $exception->getMessage());
$this->assertEquals(0, $exception->getCode());
$this->assertNull($exception->getPrevious());
$code = 500;
$previous = new \Error();
$exception = ParseExceptionFactory::createForUnparsableFile('foo', $code, $previous);
$this->assertEquals('Could not parse the file "foo".', $exception->getMessage());
$this->assertEquals($code, $exception->getCode());
$this->assertSame($previous, $exception->getPrevious());
}