function testClearingError() { $error = new SimpleStickyError(); $error->_setError('Ouch'); $this->assertTrue($error->isError()); $error->_clearError(); $this->assertFalse($error->isError()); }