public function UploadedFileTest::testConstructWhenFileNotExists

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/File/UploadedFileTest.php, line 25

Class

UploadedFileTest

Namespace

Symfony\Component\HttpFoundation\Tests\File

Code

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