public function testGetSetError()
{
$file = new FileUpload();
$this->assertEquals(UPLOAD_ERR_OK, $file->getError(), 'Default is ERR_OK');
$this->assertFalse($file->hasError(), 'ERR_OK is not an error');
$this->assertEquals($file, $file->setError(UPLOAD_ERR_INI_SIZE), 'Fluent API');
$this->assertEquals(UPLOAD_ERR_INI_SIZE, $file->getError());
$this->assertTrue($file->hasError());
}