]> granicus.if.org Git - php/commitdiff
test files for PEAR are now installable!
authorGreg Beaver <cellog@php.net>
Tue, 1 Jun 2004 14:29:59 +0000 (14:29 +0000)
committerGreg Beaver <cellog@php.net>
Tue, 1 Jun 2004 14:29:59 +0000 (14:29 +0000)
pear/tests/package-PEARtests.xml
pear/tests/pear_error.phpt
pear/tests/pear_error2.phpt
pear/tests/pear_error3.phpt
pear/tests/pear_error4.phpt
pear/tests/pear_installer1.phpt
pear/tests/pear_installer_install_channels.phpt
pear/tests/pear_registry.phpt
pear/tests/pear_registry_1.1.phpt

index b96fbe0dff211982ae488e8a255ee51e377413f7..9972ecf0218f8c49da6f0113dc7d1e1892a06be9 100644 (file)
         <file role="test" name="TestUnit.php"/>
        </dir> <!-- PEAR_ErrorStack -->
        <dir name="test-pkg6">
+        <file role="test" name="conflictpackage2.xml"/>
         <file role="test" name="conflictpackage.xml"/>
         <file role="test" name="invalidtgz.tgz"/>
         <file role="test" name="nopackagexml.tgz"/>
+        <file role="test" name="package2.xml"/>
+        <file role="test" name="package2_invalid.xml"/>
         <file role="test" name="package.xml"/>
         <file role="test" name="pkg6-1.1.tgz"/>
         <file role="test" name="pkg6-2.0b1.tgz"/>
        <file role="test" name="pear_installer_installFile_channels.phpt"/>
        <file role="test" name="pear_installer_install_channels.phpt"/>
        <file role="test" name="pear_packager.phpt"/>
+       <file role="test" name="pear_registry_inc.php.inc"/>
        <file role="test" name="pear_registry.phpt"/>
        <file role="test" name="pear_registry_1.1.phpt"/>
        <file role="test" name="pear_system.phpt"/>
index 5b3efaec385bdbb712039999c5bc1dce66436780..2a77cf497d538f7b109eccb2a9eb4ecc5ee13607 100644 (file)
@@ -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 (
index aca029b47db10a635acef42353722f43cfdfa33e..9dbfa3b22c6afc190e2bc6606d1a5b7968f5b802 100644 (file)
@@ -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);
 
index 63378a44500258facfb3b9d3514f551e0ca4be46..2e5ce8d2a2612e45a47359beff01fa76e09131bc 100644 (file)
@@ -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);
 
index b34dbcee12a572a2e5fd6da55ac43be0257318f2..0d6754c88bcf5618458f3b77576a04cb496ca88c 100644 (file)
@@ -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);
 
index f754d4d9c9d3d783f8ec990d9557d013dc7da5ff..9daf2ecf07e2427c9c079dbf9a9ea31016389528 100644 (file)
@@ -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;
index ab1811db33cbe7eab6874a934888aedc78ead838..d4c3418d0d295b461cec453f617f54a8fa84d2e8 100644 (file)
@@ -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');
index e3083cbb6a65caeb0ff4b61e473cbc6853f7279d..26cafa30351fc90dd32354405156306e4d09999f 100644 (file)
@@ -15,7 +15,7 @@ if (file_exists($statedir)) {
 <?php
 
 error_reporting(E_ALL);
-include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pear_registry_inc.php';
+include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pear_registry_inc.php.inc';
 include_once "PEAR/Registry.php";
 PEAR::setErrorHandling(PEAR_ERROR_DIE, "%s\n");
 $statedir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'registry_tester';
index 8c81c0ee567d3493f64e63d5481e1e824dce9231..5af8636072d2e94f3bb7c2783e41ebab616ed125 100644 (file)
@@ -23,7 +23,7 @@ if (PEAR_Registry::apiVersion() != '1.1') {
 --FILE--
 <?php
 error_reporting(E_ALL);
-include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pear_registry_inc.php';
+include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pear_registry_inc.php.inc';
 include_once "PEAR/Registry.php";
 PEAR::setErrorHandling(PEAR_ERROR_DIE, "%s\n");
 $statedir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'registry_tester';