| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function testDocblockWithIncompleteAnnotations(): void |
||
| 34 | { |
||
| 35 | $docComment = <<<DOCCOMMENT |
||
| 36 | /** |
||
| 37 | * Hello just a test |
||
| 38 | * |
||
| 39 | * @var |
||
| 40 | */ |
||
| 41 | DOCCOMMENT; |
||
| 42 | |||
| 43 | $factory = DocBlockFactory::createInstance(); |
||
| 44 | $docblock = $factory->create($docComment); |
||
| 45 | |||
| 46 | $this::assertCount(1, $docblock->getTags()); |
||
| 47 | |||
| 48 | foreach ($docblock->getTags() as $index => $tag) { |
||
| 49 | $this::assertNull($tag->getDescription()); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
||
| 53 |