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