gossi\codegen\tests\model\DocblockTest::testFunction PHP Метод

testFunction() публичный Метод

public testFunction ( )
    public function testFunction()
    {
        $function = PhpFunction::create(self::METHOD)->setType('string', 'this method returns a string')->addParameter(new PhpParameter('a'));
        $function->generateDocblock();
        $this->assertFalse($function->getDocblock()->isEmpty());
    }