| Conditions | 1 |
| Paths | 1 |
| Total Lines | 38 |
| Code Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function testCommonMethods() { |
||
| 31 | |||
| 32 | $filteredRecord = $this->getMockBuilder( '\Onoi\Remi\FilteredRecord' ) |
||
| 33 | ->disableOriginalConstructor() |
||
| 34 | ->getMock(); |
||
| 35 | |||
| 36 | $instance = new NullResponseParser( $filteredRecord ); |
||
| 37 | |||
| 38 | $this->assertEquals( |
||
| 39 | $filteredRecord, |
||
| 40 | $instance->getFilteredRecord() |
||
| 41 | ); |
||
| 42 | |||
| 43 | $this->assertFalse( |
||
| 44 | $instance->usesCache() |
||
| 45 | ); |
||
| 46 | |||
| 47 | $this->assertEmpty( |
||
| 48 | $instance->getMessages() |
||
| 49 | ); |
||
| 50 | |||
| 51 | $this->assertNull( |
||
| 52 | $instance->doFilterResponseById( 42 ) |
||
| 53 | ); |
||
| 54 | |||
| 55 | $this->assertNull( |
||
| 56 | $instance->doFilterResponseFor( 42 ) |
||
| 57 | ); |
||
| 58 | |||
| 59 | $this->assertEmpty( |
||
| 60 | $instance->getRawResponse( 42 ) |
||
| 61 | ); |
||
| 62 | |||
| 63 | $this->assertEmpty( |
||
| 64 | $instance->getRawResponseById( 42 ) |
||
| 65 | ); |
||
| 66 | |||
| 67 | } |
||
| 68 | |||
| 70 |