public function testGetMatchingTags() { $block = <<<EOD /** * Summary * * @tag1 value1 * @tag2 value2 * @tag1 value3 * @tag1 value4 * @tag2 value5 * @Tag1 valueA */ EOD; $expectedTag1 = ['value1', 'value3', 'value4']; $expectedTag2 = ['value2', 'value5']; $dc = new DocComment($block); $this->assertEquals($expectedTag1, $dc->getMatchingTags('tag1')); $this->assertEquals($expectedTag2, $dc->getMatchingTags('tag2')); $this->assertEquals([], $dc->getMatchingTags('notATag')); }