public function UploadedFileTest::testIsValid

File

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

Class

UploadedFileTest

Namespace

Symfony\Component\HttpFoundation\Tests\File

Code

public function testIsValid() {
  $file = new UploadedFile(__DIR__ . '/Fixtures/test.gif', 'original.gif', null, filesize(__DIR__ . '/Fixtures/test.gif'), UPLOAD_ERR_OK, true);
  $this
    ->assertTrue($file
    ->isValid());
}