| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class DummyTest extends CommonTestClass |
||
| 11 | { |
||
| 12 | public function testQuerySimple(): void |
||
| 13 | { |
||
| 14 | $libValue = new Dummy\Query(); |
||
| 15 | $this->assertNull($libValue->maxLength); |
||
| 16 | $this->assertEquals('', $libValue->body); |
||
| 17 | $libValue->body = 'qwertzuiop'; |
||
| 18 | $libValue->setExpectedAnswerSize(55); |
||
| 19 | $this->assertEquals(55, $libValue->getMaxAnswerLength()); |
||
| 20 | $libValue->maxLength = null; |
||
| 21 | $this->assertNull($libValue->getMaxAnswerLength()); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function testAnswerSimple(): void |
||
| 25 | { |
||
| 26 | $libValue = new Dummy\Answer(); |
||
| 27 | $this->assertEmpty($libValue->getContent()); |
||
| 28 | $libValue->setResponse(static::stringToResource('ksdjfasdfgasdjfhsdkf')); |
||
| 29 | $this->assertEquals('ksdjfasdfgasdjfhsdkf', $libValue->getContent()); |
||
| 30 | } |
||
| 32 |