public function testAllowsNull()
{
$noNullType = ReflectionType::createFromType(new Types\String_(), false);
$this->assertFalse($noNullType->allowsNull());
$allowsNullType = ReflectionType::createFromType(new Types\String_(), true);
$this->assertTrue($allowsNullType->allowsNull());
}