Example #1
0
 /**
  * @covers ::getPhpFileArray
  */
 public function testGetPhpFileArrayEmpty()
 {
     $domElement = $this->document->getElementById('empty-file');
     $file = new File($this->crawler, $domElement);
     $array = $file->getPhpFileArray();
     $this->assertEmpty($array['name']);
     $this->assertEmpty($array['tmp_name']);
     $this->assertEmpty($array['type']);
     $this->assertEquals(0, $array['size']);
     $this->assertEquals(UPLOAD_ERR_NO_FILE, $array['error']);
 }