/** * This method delegates to the error stacks isError, so we will test * by manipulating the error stack injected during setUp * * @depends testGetSetErrorStack * @return null */ public function testIsError() { /* make sure the error stack has no errors */ $this->assertFalse($this->errorStack->isError()); $this->assertFalse($this->response->isError()); $this->errorStack->addError('my error'); $this->assertTrue($this->errorStack->isError()); $this->assertTrue($this->response->isError()); }