public function testConstructWithNonexistentFile()
{
/** @var File|\PHPUnit_Framework_MockObject_MockObject $fileMock */
$fileMock = $this->getMockBuilder('Contao\\File')->setMethods(['__get', 'exists'])->setConstructorArgs(['dummy.jpg'])->getMock();
$fileMock->expects($this->any())->method('exists')->will($this->returnValue(false));
new Image($fileMock);
}