Beispiel #1
0
 public function testSetAllowedMimeTypes()
 {
     $name = 'upload';
     $allowedMimeTypes = ['image/jpg'];
     $upload = new Upload($name);
     $upload->setAllowedMimeTypes($allowedMimeTypes);
     $this->assertEquals($upload->getAllowedMimeTypes(), $allowedMimeTypes);
 }