public function testTestCreateForFileCouldNotBeFound()
{
$exception = InvalidArgumentExceptionFactory::createForFileCouldNotBeFound('foo');
$this->assertEquals('The file "foo" could not be found.', $exception->getMessage());
$this->assertEquals(0, $exception->getCode());
$this->assertNull($exception->getPrevious());
$code = 500;
$previous = new \Error();
$exception = InvalidArgumentExceptionFactory::createForFileCouldNotBeFound('foo', $code, $previous);
$this->assertEquals('The file "foo" could not be found.', $exception->getMessage());
$this->assertEquals($code, $exception->getCode());
$this->assertSame($previous, $exception->getPrevious());
}