| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function testEmptySources(): void |
||
| 15 | { |
||
| 16 | $handler = new Handler(); |
||
| 17 | $this->assertNull($handler->getSource()); |
||
| 18 | $this->assertNull($handler->getAddress()); |
||
| 19 | $this->assertNotNull($handler->getParams()); |
||
| 20 | |||
| 21 | $handler = new Handler(new Sources\Sources()); |
||
| 22 | $this->assertNotEmpty($handler->getSource()); |
||
| 23 | $this->assertEquals('?', $handler->getAddress()); |
||
| 24 | $this->assertNotEmpty($handler->getParams()); |
||
| 25 | $this->assertEquals([], $handler->getParams()->getParamsData()); |
||
| 26 | } |
||
| 40 |