BetterReflectionTest\Reflection\ReflectionTypeTest::testGetTypeObject PHP Method

testGetTypeObject() public method

public testGetTypeObject ( )
    public function testGetTypeObject()
    {
        $type = new Types\String_();
        $typeInfo = ReflectionType::createFromType($type, false);
        $this->assertSame($type, $typeInfo->getTypeObject());
    }