public function testHasError() { $this->assertFalse($this->object->hasError()); $this->object->setError('error'); $this->assertTrue($this->object->hasError()); }