| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function testSetGetValue() { |
||
| 27 | |||
| 28 | $instance = new RequestResponse(); |
||
| 29 | |||
| 30 | $this->assertFalse( |
||
| 31 | $instance->has( 'Foo' ) |
||
| 32 | ); |
||
| 33 | |||
| 34 | $instance->set( 'Foo', 42 ); |
||
| 35 | |||
| 36 | $this->assertEquals( |
||
| 37 | 42, |
||
| 38 | $instance->get( 'Foo' ) |
||
| 39 | ); |
||
| 40 | |||
| 41 | $this->assertEquals( |
||
| 42 | array( 'Foo' => 42 ), |
||
| 43 | $instance->getList() |
||
| 44 | ); |
||
| 45 | |||
| 46 | $this->assertInternalType( |
||
| 47 | 'string', |
||
| 48 | $instance->asJsonString() |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | |||
| 61 |