| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | public function testGetMetadata() |
||
| 11 | { |
||
| 12 | $reader0 = $this->getMock(AnnotationReader::class); |
||
| 13 | $reader0->expects($this->once()) |
||
| 14 | ->method('getMetadata') |
||
| 15 | ->willReturn(['m0', 'm1']); |
||
| 16 | $reader1 = $this->getMock(AnnotationReader::class); |
||
| 17 | $reader1->expects($this->once()) |
||
| 18 | ->method('getMetadata') |
||
| 19 | ->willReturn(['m2', 'm3']); |
||
| 20 | |||
| 21 | $metadataReader = new MetadataProvider([$reader0, $reader1]); |
||
| 22 | $result = $metadataReader->getMetadata(); |
||
| 23 | |||
| 24 | $this->assertTrue(in_array('m0', $result)); |
||
| 25 | $this->assertTrue(in_array('m1', $result)); |
||
| 26 | $this->assertTrue(in_array('m2', $result)); |
||
| 27 | $this->assertTrue(in_array('m3', $result)); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |