BetterReflectionTest\Reflection\ReflectionTypeTest::testCreateFromType PHP Method

testCreateFromType() public method

public testCreateFromType ( )
    public function testCreateFromType()
    {
        $type = new Types\String_();
        $typeInfo = ReflectionType::createFromType($type, false);
        $this->assertInstanceOf(ReflectionType::class, $typeInfo);
    }