Esempio n. 1
0
 public function testSetAllowedExtensions()
 {
     $name = 'upload';
     $allowedExtensions = ['jpg'];
     $upload = new Upload($name);
     $upload->setAllowedExtensions($allowedExtensions);
     $this->assertEquals($upload->getAllowedExtensions(), $allowedExtensions);
 }