/** * testRemoveParamRemovesExistingParam * * @test * @depends testRemoveParamOnNotExististingReturnsFalse */ public function testRemoveParamRemovesExistingParam() { $this->params->setParam('test', 123); $this->assertTrue($this->params->hasParam('test')); $this->assertEquals(123, $this->params->getParam('test')); $this->assertTrue($this->params->removeParam('test')); $this->assertFalse($this->params->hasParam('test')); $this->assertNull($this->params->getParam('test')); }
/** * testGetParamReturnsSetValue * * @test */ public function testGetParamReturnsSetValue() { $this->params->setParam('test', 123); $this->assertEquals(123, $this->params->getParam('test')); }