mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
test files for PEAR are now installable!
This commit is contained in:
parent
cb0b01f7c2
commit
27a4b575e8
@ -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"/>
|
||||
|
@ -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 (
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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');
|
||||
|
@ -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';
|
||||
|
@ -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…
Reference in New Issue
Block a user