| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 21 | public function testHandleRequest() { |
||
| 22 | $input = new Input(); |
||
| 23 | $input->setName('email'); |
||
| 24 | |||
| 25 | $input->handle(new FormData(FormData::METHOD_POST, ['email' => '[email protected]'])); |
||
| 26 | $this->assertEquals('[email protected]', $input->getValue()); |
||
| 27 | $input->handle(new FormData(FormData::METHOD_POST, [])); |
||
| 28 | $this->assertNull($input->getValue()); |
||
| 29 | } |
||
| 30 | } |