lithium\tests\cases\analysis\DocblockTest::testParamTag PHP Method

testParamTag() public method

public testParamTag ( )
    public function testParamTag()
    {
        $comment = "/**\n * Lithium is cool\n * @param string \$str Some string\n */";
        $expected = array('description' => 'Lithium is cool', 'text' => '', 'tags' => array('params' => array('$str' => array('type' => 'string', 'text' => 'Some string'))));
        $result = Docblock::comment($comment);
        $this->assertEqual($expected, $result);
    }