/** * */ public function testParseDocblock() { $result = Phpsnippets\Base::get_snippet_info(dirname(__FILE__) . '/dir2/docblock1.php'); $this->assertTrue($result['desc'] == 'This is my whacky description', 'The description was not detected properly.'); $this->assertTrue(count($result['params']) == 2, '2 parameters were defined'); $this->assertTrue($result['params']['y'] == 123, 'The default parameter was not detected properly.'); }