| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | View Code Duplication | public function testFindClaimByName() |
|
| 37 | { |
||
| 38 | $claim = new Claim\PrivateClaim('name', 'value'); |
||
| 39 | |||
| 40 | $this->claims->expects($this->exactly(2)) |
||
| 41 | ->method('getIterator') |
||
| 42 | ->will($this->returnValue(new \ArrayObject([$claim]))); |
||
| 43 | |||
| 44 | $this->assertSame($claim, $this->payload->findClaimByName('name')); |
||
| 45 | $this->assertNull($this->payload->findClaimByName('none')); |
||
| 46 | } |
||
| 47 | |||
| 64 |