<?php include 'util/test_config.php'; $api = apiNoAuth(); $login_request = new HelixWebServices\Model\LoginRequest(); $login_request->setUser("jdoe"); $login_request->setPassword("invalid"); $error_thrown = false; try { $login_response = $api->loginPost($login_request); } catch (Exception $e) { $error_thrown = true; } assert($error_thrown, "error was not thrown with incorrect password");
# | 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.login_post.illegal_auth.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. |