Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Configure test to look relative to svn path

git-svn-id: http://svn.php.net/repository/pear/packages/SOAP/trunk@322289 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 46b2f0bd48eef001a3ed0a59f77f47a88e685bcc 1 parent 381c649
@CloCkWeRX CloCkWeRX authored
View
2  tests/bug12880.phpt
@@ -10,7 +10,7 @@ require_once 'SOAP/Client.php';
require_once 'SOAP/Server.php';
require_once 'PEAR/Config.php';
$config = &PEAR_Config::singleton();
-require_once $config->get('doc_dir') . '/SOAP/example/example_server.php';
+require_once dirname(dirname(__FILE__)) . '/example/example_server.php';
/* Create example server. */
$_SERVER['SERVER_NAME'] = null;
View
2  tests/deserialize/struct_4.phpt
@@ -6,7 +6,7 @@ Deserialize custom struct
require_once dirname(__FILE__) . '/../test.utility.php';
require_once 'PEAR/Config.php';
$config = &PEAR_Config::singleton();
-require_once $config->get('doc_dir') . '/SOAP/example/example_server.php';
+require_once dirname(dirname(dirname(__FILE__))) . '/example/example_server.php';
$msg = '<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
View
2  tests/example_server.phpt
@@ -10,7 +10,7 @@ require_once 'SOAP/Client.php';
require_once 'SOAP/Server.php';
require_once 'PEAR/Config.php';
$config = &PEAR_Config::singleton();
-require_once $config->get('doc_dir') . '/SOAP/example/example_server.php';
+require_once dirname(dirname(__FILE__)) . '/example/example_server.php';
/* Create example server. */
$_SERVER['SERVER_NAME'] = null;
View
2  tests/example_server_php5.phpt
@@ -10,7 +10,7 @@ require_once 'SOAP/Client.php';
require_once 'SOAP/Server.php';
require_once 'PEAR/Config.php';
$config = &PEAR_Config::singleton();
-require_once $config->get('doc_dir') . '/SOAP/example/example_server.php';
+require_once dirname(dirname(__FILE__)) . '/example/example_server.php';
/* Create example server. */
$_SERVER['SERVER_NAME'] = null;
Please sign in to comment.
Something went wrong with that request. Please try again.