1 | <?php |
||
21 | final class DocblocksWithAnnotationsTest extends TestCase |
||
22 | { |
||
23 | /** |
||
24 | * Call Mockery::close after each test. |
||
25 | */ |
||
26 | public function tearDown() |
||
27 | { |
||
28 | m::close(); |
||
29 | } |
||
30 | |||
31 | public function testDocblockWithAnnotations() |
||
32 | { |
||
33 | $docComment = <<<DOCCOMMENT |
||
34 | /** |
||
35 | * @var \DateTime[] |
||
36 | * @Groups({"a", "b"}) |
||
37 | * @ORM\Entity |
||
38 | */ |
||
39 | DOCCOMMENT; |
||
40 | |||
41 | $factory = DocBlockFactory::createInstance(); |
||
42 | $docblock = $factory->create($docComment); |
||
43 | |||
44 | $this->assertCount(3, $docblock->getTags()); |
||
45 | } |
||
46 | } |
||
47 |