Commit e2644543381e764afa3cccfcf8df37b77ac29f98

Authored by Benjamin Renard
1 parent 5be9e0d9

Fix apache alias to test WS

php/WebServices/Tests/Base/TestsSuite.php
... ... @@ -55,7 +55,7 @@ class TestsSuite {
55 55 );
56 56 if (!$descriptionsOnly) {
57 57 $runFunc = "run".$ws_type;
58   - $res["status"] = $test->$runFunc(BASE_URL);
  58 + $res["status"] = $test->$runFunc(webAlias);
59 59 }
60 60 $results[] = $res;
61 61 }
... ...
php/wsTests.php
... ... @@ -7,8 +7,6 @@ set_include_path(get_include_path() . PATH_SEPARATOR . "WebServices/Tests/");
7 7  
8 8 require_once("Base/TestsSuite.php");
9 9  
10   -define("BASE_URL","http://127.0.0.1");
11   -
12 10 $suite = new TestsSuite();
13 11 $suite->init('WebServices/Tests/Suite');
14 12 $results = $suite->run();
... ... @@ -16,7 +14,7 @@ $results = $suite->run();
16 14 $error = FALSE;
17 15 foreach ($results as $result) {
18 16 if (!$result['status']['success']) {
19   - echo "[ERROR] ".$result['name']." - ".$result['status']['message'].PHP_EOL;
  17 + echo "[ERROR] ".$result['name']." - ".$result['type']." - ".$result['status']['message'].PHP_EOL;
20 18 $error = TRUE;
21 19 }
22 20 }
... ...