Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/tests/include/class.czabbixtest.php')
-rw-r--r--frontends/php/tests/include/class.czabbixtest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/tests/include/class.czabbixtest.php b/frontends/php/tests/include/class.czabbixtest.php
index 43ab5f51bbb..828f9eca6ce 100644
--- a/frontends/php/tests/include/class.czabbixtest.php
+++ b/frontends/php/tests/include/class.czabbixtest.php
@@ -123,11 +123,11 @@ class CZabbixTest extends PHPUnit_Framework_TestCase {
protected function setUp() {
global $DB, $URL;
- if (strstr(PHPUNIT_URL, 'http://')) {
- $URL=PHPUNIT_URL.'api_jsonrpc.php';
+ if (strpos(PHPUNIT_URL, 'http://') !== false) {
+ $URL = PHPUNIT_URL.'api_jsonrpc.php';
}
else {
- $URL='http://hudson/~hudson/'.PHPUNIT_URL.'/frontends/php/api_jsonrpc.php';
+ $URL = 'http://hudson/~hudson/'.PHPUNIT_URL.'/frontends/php/api_jsonrpc.php';
}
if (!isset($DB['DB'])) DBConnect($error);