示例#1
0
 public function testGetSetType()
 {
     $file = new FileUpload();
     $this->assertEquals('', $file->getType(), 'my/file/type');
     $this->assertEquals($file, $file->setType('my/file/type'), 'Fluent API');
     $this->assertEquals('my/file/type', $file->getType());
 }
 /**
  * @covers FileUpload::__construct
  */
 public function test__construct()
 {
     $upload = new \FileUpload("sensorsUpload");
     $this->assertSame("input", $upload->getType());
     $this->assertSame("file", $upload->get("type"));
 }