public function testErrorState() { $this->assertFalse($this->object->isError()); $this->object->setError('test error'); $this->assertTrue($this->object->isError()); $this->assertEquals(Context::STATE_ERROR, $this->object->getState()); $this->assertEquals('test error', $this->object->getError()); }