From: Greg Beaver Date: Tue, 1 Jun 2004 14:29:59 +0000 (+0000) Subject: test files for PEAR are now installable! X-Git-Tag: php-5.0.0RC3RC2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27a4b575e84cb511690077509ff64a6efdf0511e;p=php test files for PEAR are now installable! --- diff --git a/pear/tests/package-PEARtests.xml b/pear/tests/package-PEARtests.xml index b96fbe0dff..9972ecf021 100644 --- a/pear/tests/package-PEARtests.xml +++ b/pear/tests/package-PEARtests.xml @@ -67,9 +67,12 @@ + + + @@ -122,6 +125,7 @@ + diff --git a/pear/tests/pear_error.phpt b/pear/tests/pear_error.phpt index 5b3efaec38..2a77cf497d 100644 --- a/pear/tests/pear_error.phpt +++ b/pear/tests/pear_error.phpt @@ -13,7 +13,7 @@ if (!getenv('PHP_PEAR_RUNTESTS')) { // Parts tested: - PEAR_Error class // - PEAR::isError static method -include dirname(__FILE__)."/../PEAR.php"; +include_once "PEAR.php"; function test_error_handler($errno, $errmsg, $file, $line, $vars) { $errortype = array ( diff --git a/pear/tests/pear_error2.phpt b/pear/tests/pear_error2.phpt index aca029b47d..9dbfa3b22c 100644 --- a/pear/tests/pear_error2.phpt +++ b/pear/tests/pear_error2.phpt @@ -14,7 +14,7 @@ if (!getenv('PHP_PEAR_RUNTESTS')) { // - PEAR::isError static method // testing PEAR_Error -include dirname(__FILE__)."/../PEAR.php"; +include_once "PEAR.php"; error_reporting(E_ALL); diff --git a/pear/tests/pear_error3.phpt b/pear/tests/pear_error3.phpt index 63378a4450..2e5ce8d2a2 100644 --- a/pear/tests/pear_error3.phpt +++ b/pear/tests/pear_error3.phpt @@ -14,7 +14,7 @@ if (!getenv('PHP_PEAR_RUNTESTS')) { // - PEAR::setErrorHandling // - PEAR::raiseError method -include dirname(__FILE__)."/../PEAR.php"; +include_once "PEAR.php"; error_reporting(E_ALL); diff --git a/pear/tests/pear_error4.phpt b/pear/tests/pear_error4.phpt index b34dbcee12..0d6754c88b 100644 --- a/pear/tests/pear_error4.phpt +++ b/pear/tests/pear_error4.phpt @@ -14,7 +14,7 @@ if (!getenv('PHP_PEAR_RUNTESTS')) { // - PEAR::expectError // - PEAR::popExpect -include dirname(__FILE__)."/../PEAR.php"; +include_once "PEAR.php"; error_reporting(E_ALL); diff --git a/pear/tests/pear_installer1.phpt b/pear/tests/pear_installer1.phpt index f754d4d9c9..9daf2ecf07 100644 --- a/pear/tests/pear_installer1.phpt +++ b/pear/tests/pear_installer1.phpt @@ -19,7 +19,7 @@ if (!is_dir($temp_path)) { touch($temp_path . DIRECTORY_SEPARATOR . 'user.conf'); // no UI is needed for these tests $ui = false; -$config = new PEAR_Config; +$config = new PEAR_Config($temp_path . DIRECTORY_SEPARATOR . 'user.conf'); $config->set('php_dir', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'testinstallertemp'); $reg = &new PEAR_Registry($config->get('php_dir')); $chan = new PEAR_ChannelFile; diff --git a/pear/tests/pear_installer_install_channels.phpt b/pear/tests/pear_installer_install_channels.phpt index ab1811db33..d4c3418d0d 100644 --- a/pear/tests/pear_installer_install_channels.phpt +++ b/pear/tests/pear_installer_install_channels.phpt @@ -14,6 +14,7 @@ if (!is_dir($temp_path)) { } if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'php')) { mkdir($temp_path . DIRECTORY_SEPARATOR . 'php'); + mkdir($temp_path . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'frob'); } if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'data')) { mkdir($temp_path . DIRECTORY_SEPARATOR . 'data'); diff --git a/pear/tests/pear_registry.phpt b/pear/tests/pear_registry.phpt index e3083cbb6a..26cafa3035 100644 --- a/pear/tests/pear_registry.phpt +++ b/pear/tests/pear_registry.phpt @@ -15,7 +15,7 @@ if (file_exists($statedir)) {