Browse Source

test files for PEAR are now installable!

PHP-5.0
Greg Beaver 22 years ago
parent
commit
27a4b575e8
  1. 4
      pear/tests/package-PEARtests.xml
  2. 2
      pear/tests/pear_error.phpt
  3. 2
      pear/tests/pear_error2.phpt
  4. 2
      pear/tests/pear_error3.phpt
  5. 2
      pear/tests/pear_error4.phpt
  6. 2
      pear/tests/pear_installer1.phpt
  7. 1
      pear/tests/pear_installer_install_channels.phpt
  8. 2
      pear/tests/pear_registry.phpt
  9. 2
      pear/tests/pear_registry_1.1.phpt

4
pear/tests/package-PEARtests.xml

@ -67,9 +67,12 @@
<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"/>
@ -122,6 +125,7 @@
<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"/>

2
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 (

2
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);

2
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);

2
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);

2
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;

1
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');

2
pear/tests/pear_registry.phpt

@ -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';

2
pear/tests/pear_registry_1.1.phpt

@ -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';

Loading…
Cancel
Save