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

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

public testIsInternal ( )
    public function testIsInternal()
    {
        $php = '<?php function foo() {}';
        $reflector = new FunctionReflector(new StringSourceLocator($php));
        $function = $reflector->reflect('foo');
        $this->assertFalse($function->isInternal());
        $this->assertTrue($function->isUserDefined());
    }