You are here

public function FileBagTest::testShouldSetEmptyUploadedFilesToNull in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Tests/FileBagTest.php, line 49

Class

FileBagTest
FileBagTest.

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testShouldSetEmptyUploadedFilesToNull() {
  $bag = new FileBag(array(
    'file' => array(
      'name' => '',
      'type' => '',
      'tmp_name' => '',
      'error' => UPLOAD_ERR_NO_FILE,
      'size' => 0,
    ),
  ));
  $this
    ->assertNull($bag
    ->get('file'));
}