clients\SoapRpcClientTest::shouldHandleMethodWrapErrors PHP Method

shouldHandleMethodWrapErrors() public method

    public function shouldHandleMethodWrapErrors()
    {
        //given
        $errors = ['error 1', 'error 2', 'error 3'];
        //when
        $result = $this->soapClient->wrapErrors($errors);
        //then
        $this->assertFalse($result->result);
        Assert::thatArray($result->errors)->containsExactly('error 1', 'error 2', 'error 3');
    }