BetterReflectionTest\Reflection\ReflectionTypeTest::testAllowsNull PHP Метод

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

public testAllowsNull ( )
    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());
    }