diff options
Diffstat (limited to 'frontends/php/tests/include/class.czabbixtest.php')
-rw-r--r-- | frontends/php/tests/include/class.czabbixtest.php | 6 |
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); |