You are here

public function UploadedFileTest::testMoveLocalFileIsNotAllowed in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/File/UploadedFileTest.php \Symfony\Component\HttpFoundation\Tests\File\UploadedFileTest::testMoveLocalFileIsNotAllowed()

@expectedException \Symfony\Component\HttpFoundation\File\Exception\FileException

File

vendor/symfony/http-foundation/Tests/File/UploadedFileTest.php, line 134

Class

UploadedFileTest

Namespace

Symfony\Component\HttpFoundation\Tests\File

Code

public function testMoveLocalFileIsNotAllowed() {
  $file = new UploadedFile(__DIR__ . '/Fixtures/test.gif', 'original.gif', 'image/gif', filesize(__DIR__ . '/Fixtures/test.gif'), UPLOAD_ERR_OK);
  $movedFile = $file
    ->move(__DIR__ . '/Fixtures/directory');
}