Blame view

php/wsTests.php 564 Bytes
0c8a11ef   Benjamin Renard   Tests suits for W...
1
2
3
4
5
6
7
8
9
<?php

if (php_sapi_name() !='cli') die("This script can be only executed from command line");

require_once("config.php");
set_include_path(get_include_path() . PATH_SEPARATOR . "WebServices/Tests/");

require_once("Base/TestsSuite.php");

0c8a11ef   Benjamin Renard   Tests suits for W...
10
11
12
13
14
15
16
$suite = new TestsSuite();
$suite->init('WebServices/Tests/Suite');
$results = $suite->run();

$error = FALSE;
foreach ($results as $result) {
	if (!$result['status']['success']) {
e2644543   Benjamin Renard   Fix apache alias ...
17
		echo "[ERROR] ".$result['name']." - ".$result['type']." - ".$result['status']['message'].PHP_EOL;
0c8a11ef   Benjamin Renard   Tests suits for W...
18
19
20
21
22
23
24
		$error = TRUE;
	}
}

exit ($error);

?>