/** * @see \Tbs\DocBlock\Collection::export() */ public function test__toString() { $docBlock = $this->object->__toString(); $rs = \Tbs\DocBlock\Parser::getParsed($docBlock); $this->assertInternalType('array', $rs); $this->assertEquals(3, count($rs)); $this->assertArrayHasKey('shortDescription', $rs); $this->assertArrayHasKey('longDescription', $rs); $this->assertArrayHasKey('tags', $rs); $tags = $rs['tags']; $this->assertInternalType('array', $tags); $this->assertEquals(2, count($tags)); $this->assertArrayHasKey('param', $tags); $this->assertArrayHasKey('return', $tags); foreach ($tags as $tag) { $this->assertInstanceOf('\\Tbs\\DocBlock\\Collection\\Parsed', $tag[0]); } }