BetterReflectionTest\Reflection\ReflectionFunctionAbstractTest::testGetDocCommentWithComment PHP Метод

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

    public function testGetDocCommentWithComment()
    {
        $php = '<?php
        /**
         * Some function comment
         */
        function foo() {}
        ';
        $reflector = new FunctionReflector(new StringSourceLocator($php));
        $functionInfo = $reflector->reflect('foo');
        $this->assertContains('Some function comment', $functionInfo->getDocComment());
    }