| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function testParams(): void |
||
| 14 | { |
||
| 15 | $params = new Params(); |
||
| 16 | $params->setParamsData([ |
||
| 17 | 'abc' => 'def', |
||
| 18 | 'ghi' => 'jkl', |
||
| 19 | 'mno' => 'pqr', |
||
| 20 | 'stu' => 'vwx', |
||
| 21 | ]); |
||
| 22 | $this->assertNotEmpty($params->getParamsData()); |
||
| 23 | $this->assertNotEquals(null, $params->offsetGet('ghi')); |
||
| 24 | $this->assertEquals(null, $params->offsetGet('jkl')); |
||
| 25 | |||
| 26 | $params->offsetSet('poi', 'okm'); |
||
| 27 | $this->assertTrue($params->offsetExists('poi')); |
||
| 28 | $params->offsetUnset('poi'); |
||
| 29 | $this->assertFalse($params->offsetExists('poi')); |
||
| 30 | } |
||
| 52 |