public function testConstructWhenFileNotExists() { $this ->setExpectedException('Symfony\\Component\\HttpFoundation\\File\\Exception\\FileNotFoundException'); new UploadedFile(__DIR__ . '/Fixtures/not_here', 'original.gif', null); }