BetterReflectionTest\Reflection\ReflectionParameterTest::testPhp7TypeDeclarationWithClassTypeIsNotBuiltin PHP Метод

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

    public function testPhp7TypeDeclarationWithClassTypeIsNotBuiltin()
    {
        $classInfo = $this->reflector->reflect(Php7ParameterTypeDeclarations::class);
        $method = $classInfo->getMethod('foo');
        $classParamType = $method->getParameter('classParam')->getType();
        $this->assertSame('\\stdClass', (string) $classParamType);
        $this->assertFalse($classParamType->isBuiltin());
        $this->assertFalse($classParamType->allowsNull());
    }