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

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

public testIsDeprecated ( )
    public function testIsDeprecated()
    {
        $php = '<?php function foo() {}';
        $reflector = new FunctionReflector(new StringSourceLocator($php));
        $function = $reflector->reflect('foo');
        $this->assertFalse($function->isDeprecated());
    }