<?php include 'util/test_config.php'; include 'util/string_utils.php'; $api = apiAsJDoe(); $rand = generateRandomString(); $branch_id = "test-branch-$rand"; $branch_command = new HelixWebServices\Model\BranchCommand([ "branch" => $branch_id, "view" => [ "//depot/main/$branch_id/... //depot/dev/$branch_id/..." ] ]); $error_thrown = false; try { $api->serverBranchesPost("illegal", $branch_command); } catch (Exception $e) { $error_thrown = true; } assert($error_thrown);
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19553 | swellard | Move and rename clients | ||
//guest/perforce_software/helix-web-services/main/source/clients/2016.1.0/php/tests/default_api.server_branches.illegal_server_id.php | |||||
#1 | 19242 | tjuricek |
Change, client, command tests for PHP Client SDK. Changed how array-like query parameters were passed to the server to be consistent with other SDKs. |