/** * testSetParamsWithInvalidDataArray * * @test * @dataProvider invalidSetParamsDataProvider */ public function testSetParamsWithInvalidDataArray($params) { $this->setExpectedException('InvalidArgumentException'); $this->params->setParams($params); }
/** * testSetParamsWithValidDataArray * * Check the provided valid options * * @test * @dataProvider testSetParamsWithValidArray */ public function testSetParamsWithValidDataArray($params) { $this->params->setParams($params); $this->assertSame($params, $this->params->getParams()); }