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

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

    public function testGetDocReturnsEmptyStringWithNoComment()
    {
        $php = '<?php function foo() {}';
        $reflector = new FunctionReflector(new StringSourceLocator($php));
        $functionInfo = $reflector->reflect('foo');
        $this->assertSame('', $functionInfo->getDocComment());
    }