| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function testParse() |
||
| 10 | { |
||
| 11 | $parser = new AnnotationParser(); |
||
| 12 | $annotations = $parser->parse('@UUID'); |
||
| 13 | |||
| 14 | $annotation = $annotations->findAnnotation('UUID'); |
||
| 15 | $this->assertSame('UUID', $annotation->getAnnotationType()); |
||
| 16 | |||
| 17 | $annotationsArray = $annotations->getAnnotations(); |
||
| 18 | $this->assertCount(1, $annotationsArray); |
||
| 19 | $this->assertSame($annotation, $annotationsArray[0]); |
||
| 20 | |||
| 21 | |||
| 22 | $annotation = $annotations->findAnnotation('not_exist'); |
||
| 23 | $this->assertNull($annotation); |
||
| 24 | } |
||
| 25 | |||
| 44 |