public function testGetErrors() { $file = new \Upload\File('single', $this->storage); $file->addValidation(new \Upload\Validation\Mimetype(array('text/csv'))); $file->isValid(); $this->assertCount(1, $file->getErrors()); }
public function testGetErrors() { $file = new \Upload\File('single', $this->storage); $file->addValidation(new \Upload\Validation\Mimetype(array('text/csv'))); $file->isValid(); $this->assertCount(1, $file->getErrors()); }