default_api.config_p4ds_get.php #1

  • //
  • guest/
  • perforce_software/
  • helix-web-services/
  • main/
  • source/
  • client-php/
  • tests/
  • default_api.config_p4ds_get.php
  • View
  • Commits
  • Open Download .zip Download (201 B)
<?php

include 'util/test_config.php';

$api = apiAsSuper();

$p4ds = $api->configP4dsGet();

//var_dump($p4ds);

assert(!empty($p4ds) && count($p4ds) > 0, "Should have at least one p4d configured");

# 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.config_p4ds_get.php
#2 19237 tjuricek Branch specs test for PHP Client SDK

The default template didn't check isset(), so added that to the constructor initialization on models.
#1 19205 tjuricek Basic infrastructure for PHP testing, and, removing the ps check after startup - seems to be too fast, though the server should be already responding to p4 info commands.