public function FileBagTest::testShouldSetEmptyUploadedFilesToNull in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\TestsCode
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'));
}