spec\Tolerance\Operation\ExceptionCatcher\WildcardExceptionVoterSpec::it_should_catch_any_exception PHP Метод

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

    function it_should_catch_any_exception()
    {
        $this->callOnWrappedObject('shouldCatch', [new \RuntimeException()])->shouldReturn(true);
        $this->callOnWrappedObject('shouldCatch', [new \Exception()])->shouldReturn(true);
        $this->callOnWrappedObject('shouldCatch', [new \InvalidArgumentException()])->shouldReturn(true);
    }