/** * 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')); }
/** * testSetParamsWithValidDataArray * * Check the provided valid options * * @test * @dataProvider testSetParamsWithValidArray */ public function testSetParamsWithValidDataArray($params) { $this->params->setParams($params); $this->assertSame($params, $this->params->getParams()); }