spec\PhpSpec\CodeAnalysis\StaticRejectingNamespaceResolverSpec::it_does_not_allow_resolution_of_non_object_types PHP Метод

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

    function it_does_not_allow_resolution_of_non_object_types()
    {
        $this->shouldThrow(DisallowedNonObjectTypehintException::class)->duringResolve('int');
        $this->shouldThrow(DisallowedNonObjectTypehintException::class)->duringResolve('float');
        $this->shouldThrow(DisallowedNonObjectTypehintException::class)->duringResolve('string');
        $this->shouldThrow(DisallowedNonObjectTypehintException::class)->duringResolve('bool');
        $this->shouldThrow(DisallowedNonObjectTypehintException::class)->duringResolve('iterable');
    }