success = false; $createResponse->errors = [ 'loyalty' => 'The customer is in this loyalty program already' ]; return [[ 'createResponse' => $createResponse, 'expected' => true ]]; } /** * @return array[] */ public function proveNotUserInLpExistsProvider() { $createResponse = new LoyaltyAccountCreateResponse(); $createResponse->success = false; $createResponse->errors = [ 'loyalty' => 'Some other failure' ]; return [[ 'createResponse' => $createResponse, 'expected' => false ]]; } }