public function testResult() { $context = new Context(); $this->assertFalse($context->hasResult()); $this->assertNull($context->getResult()); $context->setResult('test'); $this->assertTrue($context->hasResult()); $this->assertEquals('test', $context->getResult()); $this->assertEquals('test', $context->get(Context::RESULT)); $context->setResult(null); $this->assertTrue($context->hasResult()); $context->removeResult(); $this->assertFalse($context->hasResult()); }