spec\Coduo\TuTu\Config\ResolverSpec::it_return_null_when_matching_policy_cant_match_request PHP Метод

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

public it_return_null_when_matching_policy_cant_match_request ( Coduo\TuTu\Request\MatchingPolicy $matchingPolicy )
$matchingPolicy Coduo\TuTu\Request\MatchingPolicy
    function it_return_null_when_matching_policy_cant_match_request(MatchingPolicy $matchingPolicy)
    {
        $request = Request::create('/foo/index', 'POST');
        $matchingPolicy->match($request, Argument::type('Coduo\\TuTu\\Config\\Element'))->willReturn(false);
        $this->resolveConfigElement($request)->shouldReturn(null);
    }