From 4e9d393cacc4f79a29b70edb4cdb50c2aa1de24b Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 15 Aug 2005 22:05:55 +0000 Subject: [PATCH] - cvs delete is not recursive... --- pear/tests/PEAR_test_mock_pearweb.php.inc | 234 -- pear/tests/common_sortPkgDeps1_package.xml | 38 - pear/tests/common_sortPkgDeps2_package.xml | 39 - pear/tests/common_sortPkgDeps3_package.xml | 39 - pear/tests/common_sortPkgDeps4_package.xml | 38 - pear/tests/common_sortPkgDeps5_package.xml | 38 - pear/tests/common_sortPkgDeps6_package.xml | 35 - pear/tests/depnoreleases-1.0.tgz | Bin 711 -> 0 bytes pear/tests/depunstable-1.0.tgz | Bin 718 -> 0 bytes pear/tests/download_test.config.inc | 2159 ----------------- pear/tests/download_test_classes.php.inc | 404 --- pear/tests/merge.input | 1 - pear/tests/merge2.input | 1 - pear/tests/package-PEARtests.xml | 176 -- pear/tests/pear1.phpt | 90 - pear/tests/pear2.phpt | 850 ------- pear/tests/pear_autoloader.phpt | 81 - pear/tests/pear_channelfile.phpt | 1545 ------------ pear/tests/pear_common_analyzeSC.phpt | 165 -- .../tests/pear_common_buildProvidesArray.phpt | 152 -- pear/tests/pear_common_downloadHttp.phpt | 214 -- pear/tests/pear_common_infoFromString.phpt | 1752 ------------- pear/tests/pear_common_sortPkgDeps.phpt | 73 - .../pear_common_validPackageVersion.phpt | 81 - pear/tests/pear_config.phpt | 304 --- pear/tests/pear_config_1.1.phpt | 394 --- .../tests/pear_dependency_checkExtension.phpt | 265 -- pear/tests/pear_dependency_checkPackage.phpt | 267 -- ...pear_dependency_checkPackageUninstall.phpt | 176 -- pear/tests/pear_downloader_invalid.phpt | 379 --- pear/tests/pear_downloader_new.phpt | 578 ----- pear/tests/pear_downloader_old.phpt | 609 ----- pear/tests/pear_error.phpt | 156 -- pear/tests/pear_error2.phpt | 27 - pear/tests/pear_error3.phpt | 58 - pear/tests/pear_error4.phpt | 108 - pear/tests/pear_installer1.phpt | 213 -- pear/tests/pear_installer2.phpt | 398 --- pear/tests/pear_installer3.phpt | 415 ---- pear/tests/pear_installer4.phpt | 266 -- pear/tests/pear_installer5.phpt | 224 -- .../pear_installer_installFile_channels.phpt | 447 ---- .../pear_installer_install_channels.phpt | 214 -- pear/tests/pear_packager.phpt | 396 --- pear/tests/pear_registry.phpt | 141 -- pear/tests/pear_registry_1.1.phpt | 292 --- pear/tests/pear_registry_inc.php.inc | 74 - pear/tests/pear_system.phpt | 110 - pear/tests/php.ini | 2 - pear/tests/php_dump.php.inc | 57 - pear/tests/pkg1-1.1.tgz | Bin 700 -> 0 bytes pear/tests/pkg1-2.0b1.tgz | Bin 703 -> 0 bytes pear/tests/pkg2-1.1.tgz | Bin 704 -> 0 bytes pear/tests/pkg3-1.1.tgz | Bin 714 -> 0 bytes pear/tests/pkg3-1.4.tgz | Bin 734 -> 0 bytes pear/tests/pkg4-1.1.tgz | Bin 702 -> 0 bytes pear/tests/pkg4AndAHalf-1.3.tgz | Bin 681 -> 0 bytes pear/tests/pkg5-1.1.tgz | Bin 706 -> 0 bytes pear/tests/stabilitytoolow-0.3.tgz | Bin 711 -> 0 bytes pear/tests/stabilitytoolow-0.5.tgz | Bin 713 -> 0 bytes pear/tests/stabilitytoolow-0.6beta.tgz | Bin 714 -> 0 bytes pear/tests/stabilitytoolow-1.0b1.tgz | Bin 715 -> 0 bytes pear/tests/stabilitytoolow-2.0a1.tgz | Bin 718 -> 0 bytes pear/tests/stabilitytoolow-2.0b1.tgz | Bin 713 -> 0 bytes pear/tests/stabilitytoolow-2.0dev.tgz | Bin 713 -> 0 bytes pear/tests/stabilitytoolow-3.0dev.tgz | Bin 716 -> 0 bytes pear/tests/system.input | 1 - pear/tests/testdownload.tgz | Bin 41655 -> 0 bytes pear/tests/toonew.conf | 2 - pear/tests/user.input | 1 - pear/tests/user2.input | 1 - pear/tests/user3.input | 1 - 72 files changed, 14781 deletions(-) delete mode 100644 pear/tests/PEAR_test_mock_pearweb.php.inc delete mode 100644 pear/tests/common_sortPkgDeps1_package.xml delete mode 100644 pear/tests/common_sortPkgDeps2_package.xml delete mode 100644 pear/tests/common_sortPkgDeps3_package.xml delete mode 100644 pear/tests/common_sortPkgDeps4_package.xml delete mode 100644 pear/tests/common_sortPkgDeps5_package.xml delete mode 100644 pear/tests/common_sortPkgDeps6_package.xml delete mode 100644 pear/tests/depnoreleases-1.0.tgz delete mode 100644 pear/tests/depunstable-1.0.tgz delete mode 100644 pear/tests/download_test.config.inc delete mode 100644 pear/tests/download_test_classes.php.inc delete mode 100644 pear/tests/merge.input delete mode 100644 pear/tests/merge2.input delete mode 100644 pear/tests/package-PEARtests.xml delete mode 100644 pear/tests/pear1.phpt delete mode 100644 pear/tests/pear2.phpt delete mode 100644 pear/tests/pear_autoloader.phpt delete mode 100644 pear/tests/pear_channelfile.phpt delete mode 100644 pear/tests/pear_common_analyzeSC.phpt delete mode 100644 pear/tests/pear_common_buildProvidesArray.phpt delete mode 100644 pear/tests/pear_common_downloadHttp.phpt delete mode 100644 pear/tests/pear_common_infoFromString.phpt delete mode 100644 pear/tests/pear_common_sortPkgDeps.phpt delete mode 100644 pear/tests/pear_common_validPackageVersion.phpt delete mode 100644 pear/tests/pear_config.phpt delete mode 100644 pear/tests/pear_config_1.1.phpt delete mode 100644 pear/tests/pear_dependency_checkExtension.phpt delete mode 100644 pear/tests/pear_dependency_checkPackage.phpt delete mode 100644 pear/tests/pear_dependency_checkPackageUninstall.phpt delete mode 100644 pear/tests/pear_downloader_invalid.phpt delete mode 100644 pear/tests/pear_downloader_new.phpt delete mode 100644 pear/tests/pear_downloader_old.phpt delete mode 100644 pear/tests/pear_error.phpt delete mode 100644 pear/tests/pear_error2.phpt delete mode 100644 pear/tests/pear_error3.phpt delete mode 100644 pear/tests/pear_error4.phpt delete mode 100644 pear/tests/pear_installer1.phpt delete mode 100644 pear/tests/pear_installer2.phpt delete mode 100644 pear/tests/pear_installer3.phpt delete mode 100644 pear/tests/pear_installer4.phpt delete mode 100644 pear/tests/pear_installer5.phpt delete mode 100644 pear/tests/pear_installer_installFile_channels.phpt delete mode 100644 pear/tests/pear_installer_install_channels.phpt delete mode 100644 pear/tests/pear_packager.phpt delete mode 100644 pear/tests/pear_registry.phpt delete mode 100644 pear/tests/pear_registry_1.1.phpt delete mode 100644 pear/tests/pear_registry_inc.php.inc delete mode 100644 pear/tests/pear_system.phpt delete mode 100644 pear/tests/php.ini delete mode 100644 pear/tests/php_dump.php.inc delete mode 100644 pear/tests/pkg1-1.1.tgz delete mode 100644 pear/tests/pkg1-2.0b1.tgz delete mode 100644 pear/tests/pkg2-1.1.tgz delete mode 100644 pear/tests/pkg3-1.1.tgz delete mode 100644 pear/tests/pkg3-1.4.tgz delete mode 100644 pear/tests/pkg4-1.1.tgz delete mode 100644 pear/tests/pkg4AndAHalf-1.3.tgz delete mode 100644 pear/tests/pkg5-1.1.tgz delete mode 100644 pear/tests/stabilitytoolow-0.3.tgz delete mode 100644 pear/tests/stabilitytoolow-0.5.tgz delete mode 100644 pear/tests/stabilitytoolow-0.6beta.tgz delete mode 100644 pear/tests/stabilitytoolow-1.0b1.tgz delete mode 100644 pear/tests/stabilitytoolow-2.0a1.tgz delete mode 100644 pear/tests/stabilitytoolow-2.0b1.tgz delete mode 100644 pear/tests/stabilitytoolow-2.0dev.tgz delete mode 100644 pear/tests/stabilitytoolow-3.0dev.tgz delete mode 100644 pear/tests/system.input delete mode 100644 pear/tests/testdownload.tgz delete mode 100644 pear/tests/toonew.conf delete mode 100644 pear/tests/user.input delete mode 100644 pear/tests/user2.input delete mode 100644 pear/tests/user3.input diff --git a/pear/tests/PEAR_test_mock_pearweb.php.inc b/pear/tests/PEAR_test_mock_pearweb.php.inc deleted file mode 100644 index f1f7edc9c1..0000000000 --- a/pear/tests/PEAR_test_mock_pearweb.php.inc +++ /dev/null @@ -1,234 +0,0 @@ -_remote = &$r; - } - - function addHtmlConfig($address, $filename) - { - $this->_config['html'][$address] = array(basename($filename), file_get_contents($filename)); - } - - function addXmlrpcConfig($method, $params, $return) - { - $this->_config['xmlrpc'][$method][serialize($params)] = $return; - } - - function _encode($val) - { - $val = XML_RPC_encode($val); - $ser = new XML_RPC_Response($val); - return $ser->serialize(); - } - - function receiveHttp($address) - { - if (!isset($this->_config) || !is_array($this->_config)) { - return $this->do404($address); - } - if (!isset($this->_config['html'][$address])) { - return $this->do404($address); - } else { - return $this->do200() . - 'content-length: ' . strlen($this->_config['html'][$address][1]) . "\n\n" . - $this->_config['html'][$address][1]; - } - } - - function receiveXmlrpc($postpayload) - { - $info = $this->parseRequest($postpayload); - if (!isset($this->_config['xmlrpc'][$info['method']])) { - return $this->doXmlrpcFault($info); - } - if (!isset($this->_config['xmlrpc'][serialize($info['params'])])) { - var_dump($info['param']); - die("Error - parameters not configured properly for $info[method]"); - } - return $this->do200() . - $this->_encode($this->_config['xmlrpc'][$info['method']][serialize($info['params'])]); - } - - function call($method, $params) - { - if (!isset($this->_config['xmlrpc'][$method])) { - include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'php_dump.php.inc'; - $args = $params; - switch (count($args)) { - case 0: - $result = $this->_remote->parentcall($method); - break; - case 1: - $result = $this->_remote->parentcall($method, $args[0]); - break; - case 2: - $result = $this->_remote->parentcall($method, $args[0], $args[1]); - break; - case 3: - $result = $this->_remote->parentcall($method, $args[0], $args[1], $args[2]); - break; - case 4: - $result = $this->_remote->parentcall($method, $args[0], $args[1], $args[2], $args[3]); - break; - case 5: - $result = $this->_remote->parentcall($method, $args[0], $args[1], $args[2], $args[3], $args[4]); - break; - case 6: - $result = $this->_remote->parentcall($method, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5]); - break; - } - $dump = new PHP_Dump($result); - $args = new PHP_Dump($args); - if (!isset($this->_pearweb->_config['xmlrpc'][$method][serialize($args)])) - $GLOBALS['totalPHP'][$method . serialize($args)] = '$pearweb->addXmlrpcConfig("' . - $method . '", ' . - $args->toPHP() . ', ' . - $dump->toPHP() .");"; - foreach($GLOBALS['totalPHP'] as $php) { - echo $php . "\n"; - } - var_dump(array_keys($this->_config['xmlrpc'][$method]), $params); - die("Error - parameters not configured properly for $method"); - return false; - } - if (!isset($this->_config['xmlrpc'][$method][serialize($params)])) { - include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'php_dump.php.inc'; - $args = $params; - switch (count($args)) { - case 0: - $result = $this->_remote->parentcall($method); - break; - case 1: - $result = $this->_remote->parentcall($method, $args[0]); - break; - case 2: - $result = $this->_remote->parentcall($method, $args[0], $args[1]); - break; - case 3: - $result = $this->_remote->parentcall($method, $args[0], $args[1], $args[2]); - break; - case 4: - $result = $this->_remote->parentcall($method, $args[0], $args[1], $args[2], $args[3]); - break; - case 5: - $result = $this->_remote->parentcall($method, $args[0], $args[1], $args[2], $args[3], $args[4]); - break; - case 6: - $result = $this->_remote->parentcall($method, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5]); - break; - } - $dump = new PHP_Dump($result); - $args = new PHP_Dump($args); - if (!isset($this->_pearweb->_config['xmlrpc'][$method][serialize($args)])) - $GLOBALS['totalPHP'][$method . serialize($args)] = '$pearweb->addXmlrpcConfig("' . - $method . '", ' . - $args->toPHP() . ', ' . - $dump->toPHP() .");"; - foreach($GLOBALS['totalPHP'] as $php) { - echo $php . "\n"; - } - var_dump(array_keys($this->_config['xmlrpc'][$method]), $params); - die("Error - parameters not configured properly for $method"); - } - return $this->_config['xmlrpc'][$method][serialize($params)]; - } - - function doXmlrpcFault($info) - { - $r = new XML_RPC_Response(0, 1, 'Unknown method'); - return $this->do200() . $r->serialize(); - } - - function do200() - { - return "HTTP/1.1 200 \n"; - } - - function do404($address) - { - return 'HTTP/1.1 404 ' . $address . ' Is not valid'; - } - - /** - * Parse an xmlrpc request - * @param string fake HTTP_RAW_POST_DATA - * @return string|array serialized fault string, or array containing method name and parameters - */ - function parseRequest($data) - { - // copied from XML_RPC_Server - global $XML_RPC_xh; - global $XML_RPC_err, $XML_RPC_str, $XML_RPC_errxml, - $XML_RPC_defencoding, $XML_RPC_Server_dmap; - - $parser = xml_parser_create($XML_RPC_defencoding); - - $XML_RPC_xh[$parser] = array(); - $XML_RPC_xh[$parser]['st'] = ""; - $XML_RPC_xh[$parser]['cm'] = 0; - $XML_RPC_xh[$parser]['isf'] = 0; - $XML_RPC_xh[$parser]['params'] = array(); - $XML_RPC_xh[$parser]['method'] = ""; - - $plist = ''; - - // decompose incoming XML into request structure - - xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, true); - xml_set_element_handler($parser, "XML_RPC_se", "XML_RPC_ee"); - xml_set_character_data_handler($parser, "XML_RPC_cd"); - xml_set_default_handler($parser, "XML_RPC_dh"); - if (!xml_parse($parser, $data, 1)) { - // return XML error as a faultCode - $r = new XML_RPC_Response(0, - $XML_RPC_errxml+xml_get_error_code($parser), - sprintf("XML error: %s at line %d", - xml_error_string(xml_get_error_code($parser)), - xml_get_current_line_number($parser))); - xml_parser_free($parser); - return $r->serialize(); - } else { - xml_parser_free($parser); - $params = array(); - // now add parameters in - for ($i = 0; $i < sizeof($XML_RPC_xh[$parser]['params']); $i++) { - // print "\n"; - $plist .= "$i - " . $XML_RPC_xh[$parser]['params'][$i] . " \n"; - eval('$val = ' . $XML_RPC_xh[$parser]['params'][$i] . ";"); - $param = $val->scalarval(); - $param = PEAR_test_mock_pearweb::_convertScalar($param); - $params[] = $param; - } - return array('method' => $XML_RPC_xh[$parser]['method'], 'params' => $params); - } - } - - /** - * Converts the mishmash returned from XML_RPC parsing into a regular PHP value, - * handling nested arrays gracefully. - * @param mixed - * @return mixed - */ - function _convertScalar($val) - { - if (is_a($val, 'XML_RPC_Value')) { - $val = $val->scalarval(); - } - if (!is_array($val)) { - return $val; - } - $newval = array(); - foreach ($val as $i => $contents) - { - $newval[$i] = PEAR_test_mock_pearweb::_convertScalar($contents); - } - return $newval; - } -} -?> \ No newline at end of file diff --git a/pear/tests/common_sortPkgDeps1_package.xml b/pear/tests/common_sortPkgDeps1_package.xml deleted file mode 100644 index a103b10c66..0000000000 --- a/pear/tests/common_sortPkgDeps1_package.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - pkg1 - required test for PEAR_Installer - - fake package - - PHP License - - - fakeuser - Joe Shmoe - nobody@example.com - lead - - - - 1.1 - 2003-09-09 - stable - - required dependency test - - - pkg2 - - - - zoorb.php - - oggbrzitzkee.php - Mopreeb.php - - - - - diff --git a/pear/tests/common_sortPkgDeps2_package.xml b/pear/tests/common_sortPkgDeps2_package.xml deleted file mode 100644 index 3e7c03852d..0000000000 --- a/pear/tests/common_sortPkgDeps2_package.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - pkg2 - required test for PEAR_Installer - - fake package - - PHP License - - - fakeuser - Joe Shmoe - nobody@example.com - lead - - - - 1.1 - 2003-09-09 - stable - - required dependency test - - - pkg3 - - - - - zoorb.php - - oggbrzitzkee.php - Mopreeb.php - - - - - diff --git a/pear/tests/common_sortPkgDeps3_package.xml b/pear/tests/common_sortPkgDeps3_package.xml deleted file mode 100644 index 830a94c70a..0000000000 --- a/pear/tests/common_sortPkgDeps3_package.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - pkg3 - required test for PEAR_Installer - - fake package - - PHP License - - - fakeuser - Joe Shmoe - nobody@example.com - lead - - - - 1.1 - 2003-09-09 - stable - - required dependency test - - - pkg4 - pkg5 - - - - zoorb.php - - oggbrzitzkee.php - Mopreeb.php - - - - - diff --git a/pear/tests/common_sortPkgDeps4_package.xml b/pear/tests/common_sortPkgDeps4_package.xml deleted file mode 100644 index ff3394ee56..0000000000 --- a/pear/tests/common_sortPkgDeps4_package.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - pkg4 - required test for PEAR_Installer - - fake package - - PHP License - - - fakeuser - Joe Shmoe - nobody@example.com - lead - - - - 1.1 - 2003-09-09 - stable - - required dependency test - - - pkg6 - - - - zoorb.php - - oggbrzitzkee.php - Mopreeb.php - - - - - diff --git a/pear/tests/common_sortPkgDeps5_package.xml b/pear/tests/common_sortPkgDeps5_package.xml deleted file mode 100644 index 6dea22f403..0000000000 --- a/pear/tests/common_sortPkgDeps5_package.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - pkg5 - required test for PEAR_Installer - - fake package - - PHP License - - - fakeuser - Joe Shmoe - nobody@example.com - lead - - - - 1.1 - 2003-09-09 - stable - - required dependency test - - - pkg6 - - - - zoorb.php - - oggbrzitzkee.php - Mopreeb.php - - - - - diff --git a/pear/tests/common_sortPkgDeps6_package.xml b/pear/tests/common_sortPkgDeps6_package.xml deleted file mode 100644 index a196e7003b..0000000000 --- a/pear/tests/common_sortPkgDeps6_package.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - pkg6 - required test for PEAR_Installer - - fake package - - PHP License - - - fakeuser - Joe Shmoe - nobody@example.com - lead - - - - 1.1 - 2003-09-09 - stable - - required dependency test - - - - zoorb.php - - oggbrzitzkee.php - Mopreeb.php - - - - - diff --git a/pear/tests/depnoreleases-1.0.tgz b/pear/tests/depnoreleases-1.0.tgz deleted file mode 100644 index bc1c471320a381d32cad4c0a38dcad5a4f0eb94b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 711 zcmV;&0yzC2iwFP!000003+z{0Z__Xo-gBk?2NUsBsdduphTL=rCNadcitS|*5^|H% zG-_fS+e7OR|DEHc>DnO}8yh?J_C5xbCQh>IkqjwlQ7HwVhqmuhe$V z3!4o>nBX~tF(@H5WWWs=MhjZOHJ5qL^(xfx!N?w*mAkfJ4-IRPN*Nj%gQUt?{;xn)uBW-U~g~Wuo z^nr-6d{$(^4H1%5xh(R9At}Vxo`5o&YvYF4m4dOSmWk)o#$E#6twPzZ4b-TDb7P6k z(+slI*o|RFATE+bF?Y;=5_Ct!{O=Be zez!M7Lf{YT`TtMACYb4FquHRX7LL6ZaX-c4aNT?4<#GJ7q(oA!beb$IaTBBvZP8{U z%D5>zJoxtA*_wp^`&u>r5I^_-X5!G>Gwh*f+^hcw10?kERggU5Eo=M=b^kwa{I37E t-Z=j1jC=L}2>%NPyv?lThq;Vjw{5;zIBb~2&UR%xA96|H@#G-(Rt z01-*-*=8%9_TP7$5C)Y{*N$or%_pGtx%u2x8BP}A3|qHpa`asAT({Tj!4X)v_x=KS z{jLkp@Ao>LZl~k=MC$oI$ya!O@F7(mzN6By$Oewravi{IBBD5(4V?3<%jWTM_oV4L zFbrz^)%(kL*EgdxkVV_T)y>uQ*#$UrW8@pgB!;Rb=dzWdVUda0TCQpBl76YS^IlM| z0q`tLF^EtuGi}0gf}G`)oTry*8md*G@Y^z07=b};U@8=h&fb3hdTv#c1QlncWUdyW zo~T$FdMTKO3oO0nY@3sdreT~J`jTHcVTTmdibmy2O&4p)9yrUdB`^2(qo9<`Q&D^ z*d3CKHdwtjNkXmjo$USmWo-?E{~cC^zr_9d-z*w-e|0_mjYrLYw@ZYM=lgK57%S{Y zHUBRg`{#e_AB}%}<5Bb9_lVH8?RALoDm;K{{wq{?x%dqL0RR6306-{-oB$L605h>@ AxBvhE diff --git a/pear/tests/download_test.config.inc b/pear/tests/download_test.config.inc deleted file mode 100644 index 71dd32133d..0000000000 --- a/pear/tests/download_test.config.inc +++ /dev/null @@ -1,2159 +0,0 @@ -addXmlrpcConfig("package.info", unserialize("a:3:{i:0;s:4:\"pkg6\";i:1;s:8:\"releases\";i:2;b:1;}"), array( - '2.0b1' => - array( - 'id' => - "9", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:34:03", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - '1.1' => - array( - 'id' => - "7", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:37", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - )); -$pearweb->addXmlrpcConfig("package.info", unserialize("a:3:{i:0;s:4:\"pkg2\";i:1;s:8:\"releases\";i:2;b:1;}"), array( - '1.1' => - array( - 'id' => - "3", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:02:56", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - )); -$pearweb->addXmlrpcConfig("package.info", unserialize("a:3:{i:0;s:4:\"pkg3\";i:1;s:8:\"releases\";i:2;b:1;}"), array( - '1.4' => - array( - 'id' => - "11", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:51:31", - 'releasenotes' => - "required dependency test", - 'state' => - "alpha", - ), - '1.1' => - array( - 'id' => - "4", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:06", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - )); -$pearweb->addXmlrpcConfig("package.info", unserialize("a:3:{i:0;s:4:\"pkg4\";i:1;s:8:\"releases\";i:2;b:1;}"), array( - '1.1' => - array( - 'id' => - "5", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:17", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - )); -$pearweb->addXmlrpcConfig("package.info", unserialize("a:3:{i:0;s:4:\"pkg5\";i:1;s:8:\"releases\";i:2;b:1;}"), array( - '1.1' => - array( - 'id' => - "6", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:25", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - )); -$pearweb->addXmlrpcConfig("package.info", unserialize("a:3:{i:0;s:4:\"pkg1\";i:1;s:8:\"releases\";i:2;b:1;}"), array( - '2.0b1' => - array( - 'id' => - "8", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:29:15", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - '1.1' => - array( - 'id' => - "2", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:02:43", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - )); -$pearweb->addXmlrpcConfig("package.info", unserialize("a:3:{i:0;s:12:\"pkg4AndAHalf\";i:1;s:8:\"releases\";i:2;b:1;}"), array( - '1.3' => - array( - 'id' => - "10", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:50:05", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - )); -$pearweb->addXmlrpcConfig("package.info", array( - 0 => - "noreleases", - 1 => - "releases", - 2 => - true, - ), array( - )); -$pearweb->addXmlrpcConfig("package.info", array( - 0 => - "pkg1", - 1 => - "releases", - 2 => - true, - ), array( - '2.0b1' => - array( - 'id' => - "8", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:29:15", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - '1.1' => - array( - 'id' => - "2", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:02:43", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - )); -$pearweb->addXmlrpcConfig("package.info", array( - 0 => - "stabilitytoolow", - 1 => - "releases", - 2 => - true, - ), array( - '3.0dev' => - array( - 'id' => - "23", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:27:38", - 'releasenotes' => - "required dependency test", - 'state' => - "devel", - ), - '2.0a1' => - array( - 'id' => - "22", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:27:19", - 'releasenotes' => - "required dependency test", - 'state' => - "alpha", - ), - '1.0b1' => - array( - 'id' => - "21", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:26:42", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - '0.6beta' => - array( - 'id' => - "20", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:26:36", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - '0.5' => - array( - 'id' => - "19", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:26:28", - 'releasenotes' => - "required dependency test", - 'state' => - "alpha", - ), - '0.3' => - array( - 'id' => - "18", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:26:21", - 'releasenotes' => - "required dependency test", - 'state' => - "devel", - ), - )); -$pearweb->addXmlrpcConfig("package.info", array( - 0 => - "pkg6", - 1 => - "releases", - 2 => - true, - ), array( - '2.0b1' => - array( - 'id' => - "9", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:34:03", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - '1.1' => - array( - 'id' => - "7", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:37", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - )); -$pearweb->addXmlrpcConfig("package.info", array( - 0 => - "depnoreleases", - 1 => - "releases", - 2 => - true, - ), array( - '1.0' => - array( - 'id' => - "24", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 17:10:42", - 'releasenotes' => - "dependency has no releases test", - 'state' => - "beta", - ), - )); -$pearweb->addXmlrpcConfig("package.info", array( - 0 => - "depunstable", - 1 => - "releases", - 2 => - true, - ), array( - '1.0' => - array( - 'id' => - "26", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 17:32:38", - 'releasenotes' => - "dependency stability is too low", - 'state' => - "stable", - ), - )); -$pearweb->addXmlrpcConfig("package.info", array( - 0 => - "stabilitytoolow", - ), array( - 'packageid' => - "9", - 'name' => - "stabilitytoolow", - 'type' => - "pear", - 'categoryid' => - "1", - 'category' => - "Test", - 'stable' => - "3.0dev", - 'license' => - "PHP License", - 'summary' => - "required test for PEAR_Installer", - 'homepage' => - "", - 'description' => - "fake package", - 'cvs_link' => - "", - 'doc_link' => - "", - 'releases' => - array( - '3.0dev' => - array( - 'id' => - "23", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:27:38", - 'releasenotes' => - "required dependency test", - 'state' => - "devel", - 'deps' => - array( - 0 => - array( - 'type' => - "pkg", - 'relation' => - "ge", - 'version' => - "1.0", - 'name' => - "pkg6", - 'optional' => - "0", - ), - ), - ), - '2.0a1' => - array( - 'id' => - "22", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:27:19", - 'releasenotes' => - "required dependency test", - 'state' => - "alpha", - 'deps' => - array( - 0 => - array( - 'type' => - "pkg", - 'relation' => - "ge", - 'version' => - "1.0", - 'name' => - "pkg6", - 'optional' => - "0", - ), - ), - ), - '1.0b1' => - array( - 'id' => - "21", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:26:42", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - 'deps' => - array( - 0 => - array( - 'type' => - "pkg", - 'relation' => - "ge", - 'version' => - "1.0", - 'name' => - "pkg6", - 'optional' => - "0", - ), - ), - ), - '0.6beta' => - array( - 'id' => - "20", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:26:36", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - 'deps' => - array( - 0 => - array( - 'type' => - "pkg", - 'relation' => - "ge", - 'version' => - "1.0", - 'name' => - "pkg6", - 'optional' => - "0", - ), - ), - ), - '0.5' => - array( - 'id' => - "19", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:26:28", - 'releasenotes' => - "required dependency test", - 'state' => - "alpha", - 'deps' => - array( - 0 => - array( - 'type' => - "pkg", - 'relation' => - "ge", - 'version' => - "1.0", - 'name' => - "pkg6", - 'optional' => - "0", - ), - ), - ), - '0.3' => - array( - 'id' => - "18", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:26:21", - 'releasenotes' => - "required dependency test", - 'state' => - "devel", - 'deps' => - array( - 0 => - array( - 'type' => - "pkg", - 'relation' => - "ge", - 'version' => - "1.0", - 'name' => - "pkg6", - 'optional' => - "0", - ), - ), - ), - ), - 'notes' => - array( - ), - )); -$pearweb->addXmlrpcConfig("package.info", array( - 0 => - "depnoreleases", - ), array( - 'packageid' => - "10", - 'name' => - "depnoreleases", - 'type' => - "pear", - 'categoryid' => - "1", - 'category' => - "Test", - 'stable' => - "1.0", - 'license' => - "PHP License", - 'summary' => - "required test for PEAR_Installer", - 'homepage' => - "", - 'description' => - "fake package", - 'cvs_link' => - "", - 'doc_link' => - "", - 'releases' => - array( - '1.0' => - array( - 'id' => - "24", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 17:10:42", - 'releasenotes' => - "dependency has no releases test", - 'state' => - "beta", - 'deps' => - array( - 0 => - array( - 'type' => - "pkg", - 'relation' => - "ge", - 'version' => - "1.0", - 'name' => - "noreleases", - 'optional' => - "0", - ), - ), - ), - ), - 'notes' => - array( - ), - )); -$pearweb->addXmlrpcConfig("package.info", array( - 0 => - "depunstable", - ), array( - 'packageid' => - "11", - 'name' => - "depunstable", - 'type' => - "pear", - 'categoryid' => - "1", - 'category' => - "Test", - 'stable' => - "1.0", - 'license' => - "PHP License", - 'summary' => - "required test for PEAR_Installer", - 'homepage' => - "", - 'description' => - "fake package", - 'cvs_link' => - "", - 'doc_link' => - "", - 'releases' => - array( - '1.0' => - array( - 'id' => - "26", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 17:32:38", - 'releasenotes' => - "dependency stability is too low", - 'state' => - "stable", - 'deps' => - array( - 0 => - array( - 'type' => - "pkg", - 'relation' => - "ge", - 'version' => - "1.0b1", - 'name' => - "stabilitytoolow", - 'optional' => - "0", - ), - ), - ), - ), - 'notes' => - array( - ), - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "noreleases", - 2 => - array( - 0 => - "stable", - ), - ), false); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg1", - 2 => - "1976.9.2", - ), array( - 0 => - "2.0b1", - 1 => - array( - 'id' => - "8", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:29:15", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg1", - 2 => - "snapshot", - ), array( - 0 => - "2.0b1", - 1 => - array( - 'id' => - "8", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:29:15", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg1", - 2 => - "burgerking", - ), array( - 0 => - "2.0b1", - 1 => - array( - 'id' => - "8", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:29:15", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "stabilitytoolow", - 2 => - array( - 0 => - "stable", - ), - ), array( - 0 => - "3.0dev", - 1 => - array( - 'id' => - "23", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:27:38", - 'releasenotes' => - "required dependency test", - 'state' => - "devel", - ), - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "stabilitytoolow", - 2 => - "3.0dev", - ), array( - 0 => - "3.0dev", - 1 => - array( - 'id' => - "23", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:27:38", - 'releasenotes' => - "required dependency test", - 'state' => - "devel", - ), - 2 => - "http://pear.Chiara/get/stabilitytoolow-3.0dev", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "stabilitytoolow", - 2 => - array( - 0 => - "beta", - 1 => - "stable", - ), - ), array( - 0 => - "1.0b1", - 1 => - array( - 'id' => - "21", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:26:42", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - 2 => - "http://pear.Chiara/get/stabilitytoolow-1.0b1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "stabilitytoolow", - 2 => - array( - 0 => - "alpha", - 1 => - "beta", - 2 => - "stable", - ), - ), array( - 0 => - "2.0a1", - 1 => - array( - 'id' => - "22", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:27:19", - 'releasenotes' => - "required dependency test", - 'state' => - "alpha", - ), - 2 => - "http://pear.Chiara/get/stabilitytoolow-2.0a1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "stabilitytoolow", - 2 => - array( - 0 => - "devel", - 1 => - "alpha", - 2 => - "beta", - 3 => - "stable", - ), - ), array( - 0 => - "3.0dev", - 1 => - array( - 'id' => - "23", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 00:27:38", - 'releasenotes' => - "required dependency test", - 'state' => - "devel", - ), - 2 => - "http://pear.Chiara/get/stabilitytoolow-3.0dev", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg6", - 2 => - array( - 0 => - "devel", - 1 => - "alpha", - 2 => - "beta", - 3 => - "stable", - ), - ), array( - 0 => - "2.0b1", - 1 => - array( - 'id' => - "9", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:34:03", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - 2 => - "http://pear.Chiara/get/pkg6-2.0b1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg6", - 2 => - "1.1", - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "7", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:37", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg6-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "depnoreleases", - 2 => - array( - 0 => - "devel", - 1 => - "alpha", - 2 => - "beta", - 3 => - "stable", - ), - ), array( - 0 => - "1.0", - 1 => - array( - 'id' => - "24", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 17:10:42", - 'releasenotes' => - "dependency has no releases test", - 'state' => - "beta", - ), - 2 => - "http://pear.Chiara/get/depnoreleases-1.0", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "depunstable", - 2 => - array( - 0 => - "stable", - ), - ), array( - 0 => - "1.0", - 1 => - array( - 'id' => - "26", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-06 17:32:38", - 'releasenotes' => - "dependency stability is too low", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/depunstable-1.0", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg6", - 2 => - array( - 0 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "7", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:37", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg6-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg6", - 2 => - "stable", - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "7", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:37", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg6-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg6", - 2 => - "beta", - ), array( - 0 => - "2.0b1", - 1 => - array( - 'id' => - "9", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:34:03", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - 2 => - "http://pear.Chiara/get/pkg6-2.0b1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg6", - 2 => - array( - 0 => - "beta", - 1 => - "stable", - ), - ), array( - 0 => - "2.0b1", - 1 => - array( - 'id' => - "9", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:34:03", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - 2 => - "http://pear.Chiara/get/pkg6-2.0b1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg2", - 2 => - array( - 0 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "3", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:02:56", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg2-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg3", - 2 => - array( - 0 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "4", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:06", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg3-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg4", - 2 => - array( - 0 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "5", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:17", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg4-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg5", - 2 => - array( - 0 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "6", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:25", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg5-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg1", - 2 => - array( - 0 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "2", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:02:43", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg1-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg1", - 2 => - array( - 0 => - "beta", - 1 => - "stable", - ), - ), array( - 0 => - "2.0b1", - 1 => - array( - 'id' => - "8", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:29:15", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - 2 => - "http://pear.Chiara/get/pkg1-2.0b1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg2", - 2 => - array( - 0 => - "beta", - 1 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "3", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:02:56", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg2-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg3", - 2 => - array( - 0 => - "beta", - 1 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "4", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:06", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg3-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg4", - 2 => - array( - 0 => - "beta", - 1 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "5", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:17", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg4-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg5", - 2 => - array( - 0 => - "beta", - 1 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "6", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:25", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg5-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg1", - 2 => - array( - 0 => - "alpha", - 1 => - "beta", - 2 => - "stable", - ), - ), array( - 0 => - "2.0b1", - 1 => - array( - 'id' => - "8", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:29:15", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - 2 => - "http://pear.Chiara/get/pkg1-2.0b1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg2", - 2 => - array( - 0 => - "alpha", - 1 => - "beta", - 2 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "3", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:02:56", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg2-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg3", - 2 => - array( - 0 => - "alpha", - 1 => - "beta", - 2 => - "stable", - ), - ), array( - 0 => - "1.4", - 1 => - array( - 'id' => - "11", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:51:31", - 'releasenotes' => - "required dependency test", - 'state' => - "alpha", - ), - 2 => - "http://pear.Chiara/get/pkg3-1.4", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg4AndAHalf", - 2 => - array( - 0 => - "alpha", - 1 => - "beta", - 2 => - "stable", - ), - ), array( - 0 => - "1.3", - 1 => - array( - 'id' => - "10", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:50:05", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg4AndAHalf-1.3", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg4", - 2 => - array( - 0 => - "alpha", - 1 => - "beta", - 2 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "5", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:17", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg4-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg5", - 2 => - array( - 0 => - "alpha", - 1 => - "beta", - 2 => - "stable", - ), - ), array( - 0 => - "1.1", - 1 => - array( - 'id' => - "6", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 17:03:25", - 'releasenotes' => - "required dependency test", - 'state' => - "stable", - ), - 2 => - "http://pear.Chiara/get/pkg5-1.1", - )); -$pearweb->addXmlrpcConfig("package.getDownloadURL", array( - 0 => - "pear", - 1 => - "pkg6", - 2 => - array( - 0 => - "alpha", - 1 => - "beta", - 2 => - "stable", - ), - ), array( - 0 => - "2.0b1", - 1 => - array( - 'id' => - "9", - 'doneby' => - "cellog", - 'license' => - "", - 'summary' => - "", - 'description' => - "", - 'releasedate' => - "2003-12-03 18:34:03", - 'releasenotes' => - "required dependency test", - 'state' => - "beta", - ), - 2 => - "http://pear.Chiara/get/pkg6-2.0b1", - )); - -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg6-1.1.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-1.1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg6-1.1", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-1.1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg6-2.0b1", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-2.0b1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg6-2.0b1.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-2.0b1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg2-1.1", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg2-1.1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg2-1.1.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg2-1.1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg3-1.1", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg3-1.1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg3-1.1.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg3-1.1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg4-1.1", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg4-1.1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg4-1.1.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg4-1.1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg5-1.1", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg5-1.1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg5-1.1.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg5-1.1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg1-1.1", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg1-1.1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg1-1.1.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg1-1.1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg1-2.0b1", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg1-2.0b1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg1-2.0b1.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg1-2.0b1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg3-1.4", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg3-1.4.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg3-1.4.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg3-1.4.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg4AndAHalf-1.3", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg4AndAHalf-1.3.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/pkg4AndAHalf-1.3.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg4AndAHalf-1.3.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-0.3", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-0.3.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-0.3.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-0.3.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-0.5", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-0.5.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-0.5.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-0.5.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-0.6beta", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-0.6beta.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-0.6beta.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-0.6beta.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-1.0b1", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-1.0b1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-1.0b1.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-1.0b1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-2.0a1", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-2.0a1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-2.0a1.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-2.0a1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-2.0b1", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-2.0b1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-2.0b1.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-2.0b1.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-2.0dev", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-2.0dev.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-2.0dev.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-2.0dev.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-3.0dev", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-3.0dev.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-3.0dev.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-3.0dev.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/depnoreleases-1.0", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'depnoreleases-1.0.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/depnoreleases-1.0.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'depnoreleases-1.0.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/depunstable-1.0", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'depunstable-1.0.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/depunstable-1.0.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'depunstable-1.0.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-3.0dev.tgz'); -$pearweb->addHtmlConfig("http://pear.Chiara/get/stabilitytoolow-3.0dev.tgz", - dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stabilitytoolow-3.0dev.tgz'); -?> \ No newline at end of file diff --git a/pear/tests/download_test_classes.php.inc b/pear/tests/download_test_classes.php.inc deleted file mode 100644 index c27696d48c..0000000000 --- a/pear/tests/download_test_classes.php.inc +++ /dev/null @@ -1,404 +0,0 @@ -_fakepearweb = &$GLOBALS['pearweb']; - } - - function sendPayloadHTTP10($msg, $server, $port, $timeout=0, - $username="", $password="") - { - // Only create the payload if it was not created previously - if(empty($msg->payload)) $msg->createPayload(); - - $resp = $this->_fakepearweb->receiveXmlrpc($msg->payload); - - $resp=$msg->parseResponse($resp); - return $resp; - } -} -require_once 'PEAR/Remote.php'; - -class test_PEAR_Remote extends PEAR_Remote { - var $_pearweb; - var $_fakepearweb = true; - var $_simulateEpi = true; - function test_PEAR_Remote($config) - { - $pearweb = &$GLOBALS['pearweb']; - include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'download_test.config.inc'; - $this->_pearweb = $pearweb; - parent::PEAR_Remote($config); - $this->_pearweb->setRemote($this); - } - - function parentcall() - { - $args = func_get_args(); - $method = array_shift($args); - switch (count($args)) { - case 0: - $result = PEAR_Remote::call_epi($method); - break; - case 1: - $result = PEAR_Remote::call_epi($method, $args[0]); - break; - case 2: - $result = PEAR_Remote::call_epi($method, $args[0], $args[1]); - break; - case 3: - $result = PEAR_Remote::call_epi($method, $args[0], $args[1], $args[2]); - break; - case 4: - $result = PEAR_Remote::call_epi($method, $args[0], $args[1], $args[2], $args[3]); - break; - case 5: - $result = PEAR_Remote::call_epi($method, $args[0], $args[1], $args[2], $args[3], $args[4]); - break; - case 6: - $result = PEAR_Remote::call_epi($method, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5]); - break; - } - return $result; - } - - function call($method) - { - $_args = $args = func_get_args(); - - $server_channel = $this->config->get('default_channel'); - $channel = $this->_registry->getChannel($server_channel); - if ($channel) { - if (!$channel->supports('xml-rpc', $method)) { - // check for channel.list, which is implicitly supported for the PEAR channel - if (!(strtolower($server_channel) == 'pear' && $method == 'channel.list')) { - return $this->raiseError("Channel $server_channel does not support xml-rpc method $method"); - } - } - } - - array_unshift($_args, $channel); // cache by channel - $this->cache = $this->getCache($_args); - $cachettl = $this->config->get('cache_ttl'); - // If cache is newer than $cachettl seconds, we use the cache! - if ($this->cache !== null && $this->cache['age'] < $cachettl) { - return $this->cache['content']; - }; - if ($this->_simulateEpi) { - $result = call_user_func_array(array(&$this, 'call_epi'), $args); - if (!PEAR::isError($result)) { - $this->saveCache($_args, $result); - }; - return $result; - } - if (!@include_once("XML/RPC.php")) { - return $this->raiseError("For this remote PEAR operation you need to install the XML_RPC package"); - } - array_shift($args); - $server_host = $this->_registry->channelInfo($server_channel, 'server'); - $username = $this->config->get('username'); - $password = $this->config->get('password'); - $eargs = array(); - foreach($args as $arg) $eargs[] = $this->_encode($arg); - $f = new XML_RPC_Message($method, $eargs); - if ($this->cache !== null) { - $maxAge = '?maxAge='.$this->cache['lastChange']; - } else { - $maxAge = ''; - }; - $proxy_host = $proxy_port = $proxy_user = $proxy_pass = ''; - if ($proxy = parse_url($this->config->get('http_proxy'))) { - $proxy_host = @$proxy['host']; - $proxy_port = @$proxy['port']; - $proxy_user = @$proxy['user']; - $proxy_pass = @$proxy['pass']; - } - $c = new test_XML_RPC_Client('/xmlrpc.php'.$maxAge, $server_host, 80, $proxy_host, $proxy_port, $proxy_user, $proxy_pass); - if ($username && $password) { - $c->setCredentials($username, $password); - } - if ($this->config->get('verbose') >= 3) { - $c->setDebug(1); - } - $r = $c->send($f); - if (!$r) { - return $this->raiseError("XML_RPC send failed"); - } - $v = $r->value(); - if ($e = $r->faultCode()) { - if ($e == $GLOBALS['XML_RPC_err']['http_error'] && strstr($r->faultString(), '304 Not Modified') !== false) { - return $this->cache['content']; - } - return $this->raiseError($r->faultString(), $e); - } - - $result = XML_RPC_decode($v); - $this->saveCache($_args, $result); - return $result; - } - - function call_epi($method) - { - $args = func_get_args(); - array_shift($args); - if ($this->_fakepearweb) { - if (count($args)) { - $result = $this->_pearweb->call($method, $args); - } else { - $result = $this->_pearweb->call($method); - } - }/* else { - switch (count($args)) { - case 0: - $result = parent::call($method); - break; - case 1: - $result = parent::call($method, $args[0]); - break; - case 2: - $result = parent::call($method, $args[0], $args[1]); - break; - case 3: - $result = parent::call($method, $args[0], $args[1], $args[2]); - break; - case 4: - $result = parent::call($method, $args[0], $args[1], $args[2], $args[3]); - break; - case 5: - $result = parent::call($method, $args[0], $args[1], $args[2], $args[3], $args[4]); - break; - case 6: - $result = parent::call($method, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5]); - break; - } - }*/ - if (PEAR::isError($result)) { - return $result; - } - return $result; - } -} - -require_once 'PEAR/Installer.php'; -class test_PEAR_Installer extends PEAR_Installer { - function download($packages, $options, &$config, &$installpackages, - &$errors, $installed = false, $willinstall = false, $state = false) - { - // trickiness: initialize here - $this->PEAR_Downloader($this->ui, $options, $config); - $this->_remote = &new test_PEAR_Remote($config); - $ret = PEAR_Downloader::download($packages); - $errors = $this->getErrorMsgs(); - $installpackages = $this->getDownloadedPackages(); - trigger_error("PEAR Warning: PEAR_Installer::download() is deprecated " . - "in favor of PEAR_Downloader class", E_USER_WARNING); - return $ret; - } - - function downloadHttp($url, &$ui, $save_dir = '.', $callback = null) - { -// return parent::downloadHttp($url, $ui, $save_dir, $callback); - if ($callback) { - call_user_func($callback, 'setup', array(&$ui)); - } - if (preg_match('!^http://([^/:?#]*)(:(\d+))?(/.*)!', $url, $matches)) { - list(,$host,,$port,$path) = $matches; - } - if (isset($this)) { - $config = &$this->config; - } else { - $config = &PEAR_Config::singleton(); - } - $proxy_host = $proxy_port = $proxy_user = $proxy_pass = ''; - if ($proxy = parse_url($config->get('http_proxy'))) { - $proxy_host = @$proxy['host']; - $proxy_port = @$proxy['port']; - $proxy_user = @$proxy['user']; - $proxy_pass = @$proxy['pass']; - - if ($proxy_port == '') { - $proxy_port = 8080; - } - if ($callback) { - call_user_func($callback, 'message', "Using HTTP proxy $host:$port"); - } - } - if (empty($port)) { - $port = 80; - } - // use _pearweb to get file - $retrieved = explode("\n", $this->_remote->_pearweb->receiveHttp($url)); - $headers = array(); - $line = array_shift($retrieved); - while (strlen(trim($line))) { - if (preg_match('/^([^:]+):\s+(.*)\s*$/', $line, $matches)) { - $headers[strtolower($matches[1])] = trim($matches[2]); - } elseif (preg_match('|^HTTP/1.[01] ([0-9]{3}) |', $line, $matches)) { - if ($matches[1] != 200) { - return PEAR::raiseError("File http://$host:$port$path not valid (received: $line)"); - } - } - $line = array_shift($retrieved); - } - $retrieved = join("\n", $retrieved); - if (isset($headers['content-disposition']) && - preg_match('/\sfilename=\"([^;]*\S)\"\s*(;|$)/', $headers['content-disposition'], $matches)) { - $save_as = basename($matches[1]); - } else { - $save_as = basename($url); - } - if ($callback) { - $tmp = call_user_func($callback, 'saveas', $save_as); - if ($tmp) { - $save_as = $tmp; - } - } - $dest_file = $save_dir . DIRECTORY_SEPARATOR . $save_as; - if (!$wp = @fopen($dest_file, 'wb')) { - fclose($fp); - if ($callback) { - call_user_func($callback, 'writefailed', array($dest_file, $php_errormsg)); - } - return PEAR::raiseError("could not open $dest_file for writing"); - } - if (isset($headers['content-length'])) { - $length = $headers['content-length']; - } else { - $length = -1; - } - $bytes = 0; - if ($callback) { - call_user_func($callback, 'start', array(basename($dest_file), $length)); - } - $start = 0; - while ($start < strlen($retrieved) - 1) { - $data = substr($retrieved, $start, 1024); - $start += 1024; - $bytes += strlen($data); - if ($callback) { - call_user_func($callback, 'bytesread', $bytes); - } - if (!@fwrite($wp, $data)) { - if ($callback) { - call_user_func($callback, 'writefailed', array($dest_file, $php_errormsg)); - } - return PEAR::raiseError("$dest_file: write failed ($php_errormsg)"); - } - } - fclose($wp); - if ($callback) { - call_user_func($callback, 'done', $bytes); - } - return $dest_file; - } -} - -require_once 'PEAR/Downloader.php'; -class test_PEAR_Downloader extends PEAR_Downloader { - function test_PEAR_Downloader(&$ui, $options, &$config) - { - parent::PEAR_Downloader($ui, $options, $config); - $this->_remote = new test_PEAR_Remote($config); - } - - function downloadHttp($url, &$ui, $save_dir = '.', $callback = null) - { -// return parent::downloadHttp($url, $ui, $save_dir, $callback); - if ($callback) { - call_user_func($callback, 'setup', array(&$ui)); - } - if (preg_match('!^http://([^/:?#]*)(:(\d+))?(/.*)!', $url, $matches)) { - list(,$host,,$port,$path) = $matches; - } - if (isset($this)) { - $config = &$this->config; - } else { - $config = &PEAR_Config::singleton(); - } - $proxy_host = $proxy_port = $proxy_user = $proxy_pass = ''; - if ($proxy = parse_url($config->get('http_proxy'))) { - $proxy_host = @$proxy['host']; - $proxy_port = @$proxy['port']; - $proxy_user = @$proxy['user']; - $proxy_pass = @$proxy['pass']; - - if ($proxy_port == '') { - $proxy_port = 8080; - } - if ($callback) { - call_user_func($callback, 'message', "Using HTTP proxy $host:$port"); - } - } - if (empty($port)) { - $port = 80; - } - // use _pearweb to get file - $retrieved = explode("\n", $this->_remote->_pearweb->receiveHttp($url)); - $headers = array(); - $line = array_shift($retrieved); - while (strlen(trim($line))) { - if (preg_match('/^([^:]+):\s+(.*)\s*$/', $line, $matches)) { - $headers[strtolower($matches[1])] = trim($matches[2]); - } elseif (preg_match('|^HTTP/1.[01] ([0-9]{3}) |', $line, $matches)) { - if ($matches[1] != 200) { - return PEAR::raiseError("File http://$host:$port$path not valid (received: $line)"); - } - } - $line = array_shift($retrieved); - } - $retrieved = join("\n", $retrieved); - if (isset($headers['content-disposition']) && - preg_match('/\sfilename=\"([^;]*\S)\"\s*(;|$)/', $headers['content-disposition'], $matches)) { - $save_as = basename($matches[1]); - } else { - $save_as = basename($url); - } - if ($callback) { - $tmp = call_user_func($callback, 'saveas', $save_as); - if ($tmp) { - $save_as = $tmp; - } - } - $dest_file = $save_dir . DIRECTORY_SEPARATOR . $save_as; - if (!$wp = @fopen($dest_file, 'wb')) { - fclose($fp); - if ($callback) { - call_user_func($callback, 'writefailed', array($dest_file, $php_errormsg)); - } - return PEAR::raiseError("could not open $dest_file for writing"); - } - if (isset($headers['content-length'])) { - $length = $headers['content-length']; - } else { - $length = -1; - } - $bytes = 0; - if ($callback) { - call_user_func($callback, 'start', array(basename($dest_file), $length)); - } - $start = 0; - while ($start < strlen($retrieved) - 1) { - $data = substr($retrieved, $start, 1024); - $start += 1024; - $bytes += strlen($data); - if ($callback) { - call_user_func($callback, 'bytesread', $bytes); - } - if (!@fwrite($wp, $data)) { - if ($callback) { - call_user_func($callback, 'writefailed', array($dest_file, $php_errormsg)); - } - return PEAR::raiseError("$dest_file: write failed ($php_errormsg)"); - } - } - fclose($wp); - if ($callback) { - call_user_func($callback, 'done', $bytes); - } - return $dest_file; - } -} -?> \ No newline at end of file diff --git a/pear/tests/merge.input b/pear/tests/merge.input deleted file mode 100644 index 440106ea45..0000000000 --- a/pear/tests/merge.input +++ /dev/null @@ -1 +0,0 @@ -a:1:{s:7:"verbose";i:100;} \ No newline at end of file diff --git a/pear/tests/merge2.input b/pear/tests/merge2.input deleted file mode 100644 index 853a6d10bb..0000000000 --- a/pear/tests/merge2.input +++ /dev/null @@ -1 +0,0 @@ -a:2:{s:7:"verbose";i:35;s:10:"__channels";a:2:{s:5:"test1";a:1:{s:7:"verbose";i:898;}s:5:"test2";a:1:{s:7:"verbose";i:899;}}} \ No newline at end of file diff --git a/pear/tests/package-PEARtests.xml b/pear/tests/package-PEARtests.xml deleted file mode 100644 index daceee967b..0000000000 --- a/pear/tests/package-PEARtests.xml +++ /dev/null @@ -1,176 +0,0 @@ - - - - PEARtests - PEAR Base System tests - This package contains all tests for the PEAR base system - - - cellog - Greg Beaver - cellog@php.net - developer - - - - 2.1 - 2004-06-04 - PHP License - stable - Installation package.xml for PEAR package tests - - PEAR - Archive_Tar - Console_Getopt - XML_RPC - xml - pcre - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1.0 - 2004-03-21 - PHP License - stable - Installation package.xml for PEAR package tests - - - 2.0 - 2004-06-01 - PHP License - stable - Installation package.xml for PEAR package tests - - - diff --git a/pear/tests/pear1.phpt b/pear/tests/pear1.phpt deleted file mode 100644 index f65d6a4f19..0000000000 --- a/pear/tests/pear1.phpt +++ /dev/null @@ -1,90 +0,0 @@ ---TEST-- -PEAR constructor/destructor test ---SKIPIF-- - ---FILE-- -_debug = true; - $this->name = $name; - $this->PEAR(); - } - function _TestPEAR() { - print "This is the TestPEAR($this->name) destructor\n"; - $this->_PEAR(); - } -} - -class Test2 extends PEAR { - function _Test2() { - print "This is the Test2 destructor\n"; - $this->_PEAR(); - } -} - -class Test3 extends Test2 { -} - -// test for bug http://bugs.php.net/bug.php?id=14744 -class Other extends Pear { - - var $a = 'default value'; - - function Other() { - $this->PEAR(); - } - - function _Other() { - // $a was modified but here misteriously returns to be - // the original value. That makes the destructor useless - // The correct value for $a in the destructor shoud be "new value" - echo "#bug 14744# Other class destructor: other->a == '" . $this->a ."'\n"; - } -} - -print "testing plain destructors\n"; -$o = new TestPEAR("test1"); -$p = new TestPEAR("test2"); -print "..\n"; -print "testing inherited destructors\n"; -$q = new Test3; - -echo "...\ntesting bug #14744\n"; -$other =& new Other; -echo "#bug 14744# Other class constructor: other->a == '" . $other->a ."'\n"; -// Modify $a -$other->a = 'new value'; -echo "#bug 14744# Other class modified: other->a == '" . $other->a ."'\n"; - -print "..\n"; -print "script exiting...\n"; -print "..\n"; - -?> ---EXPECT-- -testing plain destructors -PEAR constructor called, class=testpear -PEAR constructor called, class=testpear -.. -testing inherited destructors -... -testing bug #14744 -#bug 14744# Other class constructor: other->a == 'default value' -#bug 14744# Other class modified: other->a == 'new value' -.. -script exiting... -.. -This is the TestPEAR(test1) destructor -PEAR destructor called, class=testpear -This is the TestPEAR(test2) destructor -PEAR destructor called, class=testpear -This is the Test2 destructor -#bug 14744# Other class destructor: other->a == 'new value' diff --git a/pear/tests/pear2.phpt b/pear/tests/pear2.phpt deleted file mode 100644 index ccf8864ef2..0000000000 --- a/pear/tests/pear2.phpt +++ /dev/null @@ -1,850 +0,0 @@ ---TEST-- -PEAR complete set/push/pop error-handling test (run from pear/tests dir) ---SKIPIF-- - ---FILE-- -_default_error_mode', $this->_default_error_mode, - '$this->_default_error_options', $this->_default_error_options); - } - - function doSetErrorHandlingStatic() - { - print "testing in PEAR setErrorHandling array(obj, method)\n"; - $obj = new testErrorHandlingPEAR; - PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array(&$obj, 'fakeHandleError')); - echoPEARVars('_PEAR_default_error_mode', $GLOBALS['_PEAR_default_error_mode'], - '_PEAR_default_error_options', $GLOBALS['_PEAR_default_error_options']); - echoPEARVars('$this->_default_error_mode', $this->_default_error_mode, - '$this->_default_error_options', $this->_default_error_options); - } - - function doSetErrorHandlingObject() - { - print "testing in PEAR setErrorHandling array(class, method)\n"; - PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array('testErrorHandlingStatic', 'fakeHandleError')); - echoPEARVars('_PEAR_default_error_mode', $GLOBALS['_PEAR_default_error_mode'], - '_PEAR_default_error_options', $GLOBALS['_PEAR_default_error_options']); - echoPEARVars('$this->_default_error_mode', $this->_default_error_mode, - '$this->_default_error_options', $this->_default_error_options); - } - - function doPushErrorHandlingFunction() - { - print "testing in PEAR pushErrorHandling\n"; - PEAR::pushErrorHandling(PEAR_ERROR_CALLBACK, 'get_error_mode'); - echoPEARStack('_PEAR_error_handler_stack', $GLOBALS['_PEAR_error_handler_stack']); - } - - function doPushErrorHandlingObject() - { - print "testing in PEAR pushErrorHandling array(obj, method)\n"; - $obj = new testErrorHandlingPEAR; - PEAR::pushErrorHandling(PEAR_ERROR_CALLBACK, array(&$obj, 'fakeHandleError')); - echoPEARStack('_PEAR_error_handler_stack', $GLOBALS['_PEAR_error_handler_stack']); - } - - function doPushErrorHandlingStatic() - { - print "testing in PEAR pushErrorHandling array(class, method)\n"; - PEAR::pushErrorHandling(PEAR_ERROR_CALLBACK, array('testErrorHandlingStatic', 'fakeHandleError')); - echoPEARStack('_PEAR_error_handler_stack', $GLOBALS['_PEAR_error_handler_stack']); - } - - function doPopErrorHandling() - { - print "testing in PEAR popErrorHandling\n"; - PEAR::popErrorHandling(); - echoPEARStack('_PEAR_error_handler_stack', $GLOBALS['_PEAR_error_handler_stack']); - } -} - -function echoPEARVars($name1, $mode, $name2, $options, $indent = '') -{ - $levelMap = - array( - E_USER_NOTICE => 'E_USER_NOTICE', - E_USER_WARNING => 'E_USER_WARNING', - E_USER_ERROR => 'E_USER_ERROR', - ); - $pearLevelMap = - array( - PEAR_ERROR_RETURN =>'PEAR_ERROR_RETURN', - PEAR_ERROR_PRINT =>'PEAR_ERROR_PRINT', - PEAR_ERROR_TRIGGER =>'PEAR_ERROR_TRIGGER', - PEAR_ERROR_DIE =>'PEAR_ERROR_DIE', - PEAR_ERROR_CALLBACK =>'PEAR_ERROR_CALLBACK', - PEAR_ERROR_EXCEPTION =>'PEAR_ERROR_EXCEPTION', - ); - print $indent . "echoing PEAR error-handling Variables:\n"; - print "$indent--------------------------------------\n"; - print $indent . "$name1:\n"; - $levels = get_error_mode($mode); - print $indent; - foreach($levels as $level) { - print $pearLevelMap[$level] . ','; - } - print "\n"; - print $indent . "$name2:\n"; - if (is_string($options)) { - print $indent . 'Callback: ' . $options. "()\n"; - } elseif (is_array($options)) { - print $indent . 'Callback: '; - if (is_string($options[0])) { - print '(static) ' . $options[0] . '::'; - } else { - print get_class($options[0]) . '->'; - } - print $options[1] . "()\n"; - } else { - print $indent . $levelMap[$options] . "\n"; - } - print "$indent--------------------------------------\n"; -} - -function echoPEARStack($name, $stack) -{ - print "stack $name:\n"; - foreach ($stack as $i => $item) { - print "Index $i:\n"; - echoPEARVars('mode', $item[0], 'options', $item[1], ' '); - } -} - -function get_error_mode($err) -{ - $ret = array(); - $level = 0; - while($level < 7) { - $a = ($err >> $level++) & 1; - if ($a) { - $ret[] = 1 << ($level - 1); - } - } - return $ret; -} -print "testing static error-handling global code\n"; -echoPEARVars('_PEAR_default_error_mode', $GLOBALS['_PEAR_default_error_mode'], - '_PEAR_default_error_options', $GLOBALS['_PEAR_default_error_options']); -print "testing setErrorHandling\n"; -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'get_error_mode'); -echoPEARVars('_PEAR_default_error_mode', $GLOBALS['_PEAR_default_error_mode'], - '_PEAR_default_error_options', $GLOBALS['_PEAR_default_error_options']); -print "testing setErrorHandling array(obj, method)\n"; -$obj = new testErrorHandlingPEAR; -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array(&$obj, 'fakeHandleError')); -echoPEARVars('_PEAR_default_error_mode', $GLOBALS['_PEAR_default_error_mode'], - '_PEAR_default_error_options', $GLOBALS['_PEAR_default_error_options']); -print "testing setErrorHandling array(class, method)\n"; -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array('testErrorHandlingStatic', 'fakeHandleError')); -echoPEARVars('_PEAR_default_error_mode', $GLOBALS['_PEAR_default_error_mode'], - '_PEAR_default_error_options', $GLOBALS['_PEAR_default_error_options']); - - -print "testing pushErrorHandling\n"; -PEAR::pushErrorHandling(PEAR_ERROR_CALLBACK, 'get_error_mode'); -echoPEARStack('_PEAR_error_handler_stack', $GLOBALS['_PEAR_error_handler_stack']); -print "testing pushErrorHandling array(obj, method)\n"; -$obj = new testErrorHandlingPEAR; -PEAR::pushErrorHandling(PEAR_ERROR_CALLBACK, array(&$obj, 'fakeHandleError')); -echoPEARStack('_PEAR_error_handler_stack', $GLOBALS['_PEAR_error_handler_stack']); -print "testing pushErrorHandling array(class, method)\n"; -PEAR::pushErrorHandling(PEAR_ERROR_CALLBACK, array('testErrorHandlingStatic', 'fakeHandleError')); -echoPEARStack('_PEAR_error_handler_stack', $GLOBALS['_PEAR_error_handler_stack']); - - -print "testing popErrorHandling\n"; -PEAR::popErrorHandling(); -echoPEARStack('_PEAR_error_handler_stack', $GLOBALS['_PEAR_error_handler_stack']); -print "testing popErrorHandling\n"; -$obj = new testErrorHandlingPEAR; -PEAR::popErrorHandling(); -echoPEARStack('_PEAR_error_handler_stack', $GLOBALS['_PEAR_error_handler_stack']); -print "testing popErrorHandling\n"; -PEAR::popErrorHandling(); -echoPEARStack('_PEAR_error_handler_stack', $GLOBALS['_PEAR_error_handler_stack']); -print "*******************************************\n"; -print "testing static error-handling in-class code\n"; -print "*******************************************\n"; -PEAR::setErrorHandling(PEAR_ERROR_RETURN, E_USER_NOTICE); -$obj = new testErrorHandlingStatic; -$obj->doSetErrorHandlingFunction(); -$obj->doSetErrorHandlingStatic(); -$obj->doSetErrorHandlingObject(); -$obj->doPushErrorHandlingFunction(); -$obj->doPushErrorHandlingStatic(); -$obj->doPushErrorHandlingObject(); -$obj->doPopErrorHandling(); -$obj->doPopErrorHandling(); -$obj->doPopErrorHandling(); -print "*******************************************\n"; -print "testing non-static error-handling in-class code\n"; -print "*******************************************\n"; -PEAR::setErrorHandling(PEAR_ERROR_RETURN, E_USER_NOTICE); -$obj = new testErrorHandlingPEAR; -$obj->doSetErrorHandlingFunction(); -$obj->doSetErrorHandlingStatic(); -$obj->doSetErrorHandlingObject(); -$obj->doPushErrorHandlingFunction(); -$obj->doPushErrorHandlingStatic(); -$obj->doPushErrorHandlingObject(); -$obj->doPopErrorHandling(); -$obj->doPopErrorHandling(); -$obj->doPopErrorHandling(); - -?> ---EXPECT-- -testing static error-handling global code -echoing PEAR error-handling Variables: --------------------------------------- -_PEAR_default_error_mode: -PEAR_ERROR_RETURN, -_PEAR_default_error_options: -E_USER_NOTICE --------------------------------------- -testing setErrorHandling -echoing PEAR error-handling Variables: --------------------------------------- -_PEAR_default_error_mode: -PEAR_ERROR_CALLBACK, -_PEAR_default_error_options: -Callback: get_error_mode() --------------------------------------- -testing setErrorHandling array(obj, method) -echoing PEAR error-handling Variables: --------------------------------------- -_PEAR_default_error_mode: -PEAR_ERROR_CALLBACK, -_PEAR_default_error_options: -Callback: testerrorhandlingpear->fakeHandleError() --------------------------------------- -testing setErrorHandling array(class, method) -echoing PEAR error-handling Variables: --------------------------------------- -_PEAR_default_error_mode: -PEAR_ERROR_CALLBACK, -_PEAR_default_error_options: -Callback: (static) testErrorHandlingStatic::fakeHandleError() --------------------------------------- -testing pushErrorHandling -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -testing pushErrorHandling array(obj, method) -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 2: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 3: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: testerrorhandlingpear->fakeHandleError() - -------------------------------------- -testing pushErrorHandling array(class, method) -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 2: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 3: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: testerrorhandlingpear->fakeHandleError() - -------------------------------------- -Index 4: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: testerrorhandlingpear->fakeHandleError() - -------------------------------------- -Index 5: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -testing popErrorHandling -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 2: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 3: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: testerrorhandlingpear->fakeHandleError() - -------------------------------------- -testing popErrorHandling -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -testing popErrorHandling -stack _PEAR_error_handler_stack: -******************************************* -testing static error-handling in-class code -******************************************* -testing in class setErrorHandling -echoing PEAR error-handling Variables: --------------------------------------- -_PEAR_default_error_mode: -PEAR_ERROR_CALLBACK, -_PEAR_default_error_options: -Callback: get_error_mode() --------------------------------------- -testing in class setErrorHandling array(obj, method) -echoing PEAR error-handling Variables: --------------------------------------- -_PEAR_default_error_mode: -PEAR_ERROR_CALLBACK, -_PEAR_default_error_options: -Callback: testerrorhandlingpear->fakeHandleError() --------------------------------------- -testing in class setErrorHandling array(class, method) -echoing PEAR error-handling Variables: --------------------------------------- -_PEAR_default_error_mode: -PEAR_ERROR_CALLBACK, -_PEAR_default_error_options: -Callback: (static) testErrorHandlingStatic::fakeHandleError() --------------------------------------- -testing in class pushErrorHandling -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -testing in class pushErrorHandling array(class, method) -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 2: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 3: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -testing in class pushErrorHandling array(obj, method) -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 2: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 3: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 4: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 5: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: testerrorhandlingpear->fakeHandleError() - -------------------------------------- -testing in class popErrorHandling -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 2: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 3: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -testing in class popErrorHandling -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -testing in class popErrorHandling -stack _PEAR_error_handler_stack: -******************************************* -testing non-static error-handling in-class code -******************************************* -testing in PEAR setErrorHandling -echoing PEAR error-handling Variables: --------------------------------------- -_PEAR_default_error_mode: -PEAR_ERROR_RETURN, -_PEAR_default_error_options: -E_USER_NOTICE --------------------------------------- -echoing PEAR error-handling Variables: --------------------------------------- -$this->_default_error_mode: -PEAR_ERROR_CALLBACK, -$this->_default_error_options: -Callback: get_error_mode() --------------------------------------- -testing in PEAR setErrorHandling array(obj, method) -echoing PEAR error-handling Variables: --------------------------------------- -_PEAR_default_error_mode: -PEAR_ERROR_RETURN, -_PEAR_default_error_options: -E_USER_NOTICE --------------------------------------- -echoing PEAR error-handling Variables: --------------------------------------- -$this->_default_error_mode: -PEAR_ERROR_CALLBACK, -$this->_default_error_options: -Callback: testerrorhandlingpear->fakeHandleError() --------------------------------------- -testing in PEAR setErrorHandling array(class, method) -echoing PEAR error-handling Variables: --------------------------------------- -_PEAR_default_error_mode: -PEAR_ERROR_RETURN, -_PEAR_default_error_options: -E_USER_NOTICE --------------------------------------- -echoing PEAR error-handling Variables: --------------------------------------- -$this->_default_error_mode: -PEAR_ERROR_CALLBACK, -$this->_default_error_options: -Callback: (static) testErrorHandlingStatic::fakeHandleError() --------------------------------------- -testing in PEAR pushErrorHandling -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -testing in PEAR pushErrorHandling array(class, method) -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 2: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 3: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -testing in PEAR pushErrorHandling array(obj, method) -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 2: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 3: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 4: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 5: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: testerrorhandlingpear->fakeHandleError() - -------------------------------------- -testing in PEAR popErrorHandling -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 2: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -Index 3: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -testing in PEAR popErrorHandling -stack _PEAR_error_handler_stack: -Index 0: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: (static) testErrorHandlingStatic::fakeHandleError() - -------------------------------------- -Index 1: - echoing PEAR error-handling Variables: - -------------------------------------- - mode: - PEAR_ERROR_CALLBACK, - options: - Callback: get_error_mode() - -------------------------------------- -testing in PEAR popErrorHandling -stack _PEAR_error_handler_stack: diff --git a/pear/tests/pear_autoloader.phpt b/pear/tests/pear_autoloader.phpt deleted file mode 100644 index f25f4a4116..0000000000 --- a/pear/tests/pear_autoloader.phpt +++ /dev/null @@ -1,81 +0,0 @@ ---TEST-- -PEAR_Autoloader ---SKIPIF-- -skip - ---FILE-- -addAutoload(array( - 'testfunc1' => 'testclass1', - 'testfunca' => 'testclass1', - 'testfunc2' => 'testclass2', - 'testfuncb' => 'testclass2', - )); - } -} - -class testclass1 { - function testfunc1($a) { - print "testfunc1 arg=";var_dump($a); - return 1; - } - function testfunca($a) { - print "testfunca arg=";var_dump($a); - return 2; - } -} - -class testclass2 { - function testfunc2($b) { - print "testfunc2 arg=";var_dump($b); - return 3; - } - function testfuncb($b) { - print "testfuncb arg=";var_dump($b); - return 4; - } -} - -function dump($obj) { - print "mapped methods:"; - foreach ($obj->_method_map as $method => $object) { - print " $method"; - } - print "\n"; -} - -function call($msg, $retval) { - print "calling $msg returned $retval\n"; -} - -$obj = new test1; -dump($obj); -call("testfunc1", $obj->testfunc1(2)); -dump($obj); -call("testfunca", $obj->testfunca(2)); -dump($obj); -call("testfunc2", $obj->testfunc2(2)); -dump($obj); -call("testfuncb", $obj->testfuncb(2)); -dump($obj); - -?> ---EXPECT-- -mapped methods: -testfunc1 arg=int(2) -calling testfunc1 returned 1 -mapped methods: testfunc1 testfunca -testfunca arg=int(2) -calling testfunca returned 2 -mapped methods: testfunc1 testfunca -testfunc2 arg=int(2) -calling testfunc2 returned 3 -mapped methods: testfunc1 testfunca testfunc2 testfuncb -testfuncb arg=int(2) -calling testfuncb returned 4 -mapped methods: testfunc1 testfunca testfunc2 testfuncb diff --git a/pear/tests/pear_channelfile.phpt b/pear/tests/pear_channelfile.phpt deleted file mode 100644 index 838c57fbcb..0000000000 --- a/pear/tests/pear_channelfile.phpt +++ /dev/null @@ -1,1545 +0,0 @@ ---TEST-- -PEAR_Channelfile ---SKIPIF-- - ---FILE-- -fromXmlString(' - - PEAR5 -PEAR packages for PHP 5 -pear.php.net - - -qa.pear.php.net -Quality Assurance releases of unmaintained packages -PEAR - - - -boo.pear.php.net -booya -PEAR - - - - - - -'); - -echo "after parsing\n"; -var_dump($chf->validate()); -var_dump($chf->toArray()); -var_dump($chf->toXml()); -$chf->fromXmlString($chf->toXml()); - -echo "after re-parsing\n"; -var_dump($chf->validate()); -var_dump($chf->toArray()); -var_dump($chf->toXml()); - -echo "test compatibility\n"; -$chf = new PEAR_ChannelFile(true); -$chf->fromXmlString(' - - PEAR5 -PEAR packages for PHP 5 -pear.php.net - - -qa.pear.php.net -Quality Assurance releases of unmaintained packages -PEAR - - - -boo.pear.php.net -booya -PEAR - - - - - - -'); - -echo "after parsing\n"; -var_dump($chf->validate()); -var_dump($chf->toArray()); -var_dump($chf->toXml()); -$chf->fromXmlString($chf->toXml()); - -echo "after re-parsing\n"; -var_dump($chf->validate()); -var_dump($chf->toArray()); -var_dump($chf->toXml()); - -echo "\ntest add packagenameregex\n"; -$chf->setPackageNameRegex('[A-Z]+'); -var_dump($chf->toArray()); -var_dump($chf->toXml()); -$chf->fromXmlString($chf->toXml()); - -echo "after re-parsing\n"; -var_dump($chf->validate()); -var_dump($chf->toArray()); -var_dump($chf->toXml()); - -echo "\ntest add protocols\n"; -$chf->addProtocol('xml-rpc', '1.0', 'package.listall'); -$chf->addProtocol('xml-rpc', '1.0', 'release.list'); -$chf->addProtocol('get', '1.0'); -var_dump($chf->toArray()); -var_dump($chf->toXml()); -$chf->fromXmlString($chf->toXml()); - -echo "after re-parsing\n"; -var_dump($chf->validate()); -var_dump($chf->toArray()); -var_dump($chf->toXml()); - -echo "\ntest add mirror\n"; -$chf->addMirror('server', 'mirror.php.net'); -$chf->addMirrorProtocol('mirror.php.net', 'xml-rpc', '1.0', 'package.listall'); -$chf->addMirrorProtocol('mirror.php.net', 'xml-rpc', '1.0', 'release.list'); -var_dump($chf->toArray()); -var_dump($chf->toXml()); -$chf->fromXmlString($chf->toXml()); - -echo "after re-parsing\n"; -var_dump($chf->validate()); -var_dump($chf->toArray()); -var_dump($chf->toXml()); -?> ---EXPECT-- -test default -after parsing -bool(true) -array(6) { - ["version"]=> - string(3) "1.0" - ["name"]=> - string(5) "pear5" - ["summary"]=> - string(23) "PEAR packages for PHP 5" - ["server"]=> - string(12) "pear.php.net" - ["subchannels"]=> - array(2) { - [1]=> - array(4) { - ["name"]=> - string(8) "pear5.qa" - ["server"]=> - string(15) "qa.pear.php.net" - ["summary"]=> - string(51) "Quality Assurance releases of unmaintained packages" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.4" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - } - [2]=> - array(4) { - ["name"]=> - string(8) "pear.boo" - ["server"]=> - string(16) "boo.pear.php.net" - ["summary"]=> - string(5) "booya" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.5" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.1.0" - } - } - } - } - ["deps"]=> - array(1) { - [1]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } -} -string(823) " - - - pear5 - PEAR packages for PHP 5 - pear.php.net - - - Quality Assurance releases of unmaintained packages - - PEAR - - - - - booya - - PEAR - - - - - - - - -" -after re-parsing -bool(true) -array(6) { - ["version"]=> - string(3) "1.0" - ["name"]=> - string(5) "pear5" - ["summary"]=> - string(23) "PEAR packages for PHP 5" - ["server"]=> - string(12) "pear.php.net" - ["subchannels"]=> - array(2) { - [1]=> - array(4) { - ["name"]=> - string(8) "pear5.qa" - ["server"]=> - string(15) "qa.pear.php.net" - ["summary"]=> - string(51) "Quality Assurance releases of unmaintained packages" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.4" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - } - [2]=> - array(4) { - ["name"]=> - string(8) "pear.boo" - ["server"]=> - string(16) "boo.pear.php.net" - ["summary"]=> - string(5) "booya" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.5" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.1.0" - } - } - } - } - ["deps"]=> - array(1) { - [1]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } -} -string(823) " - - - pear5 - PEAR packages for PHP 5 - pear.php.net - - - Quality Assurance releases of unmaintained packages - - PEAR - - - - - booya - - PEAR - - - - - - - - -" -test compatibility -after parsing -bool(true) -array(6) { - ["version"]=> - string(3) "1.0" - ["name"]=> - string(5) "pear5" - ["summary"]=> - string(23) "PEAR packages for PHP 5" - ["server"]=> - string(12) "pear.php.net" - ["subchannels"]=> - array(2) { - [1]=> - array(4) { - ["name"]=> - string(8) "pear5.qa" - ["server"]=> - string(15) "qa.pear.php.net" - ["summary"]=> - string(51) "Quality Assurance releases of unmaintained packages" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.4" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - } - [2]=> - array(4) { - ["name"]=> - string(8) "pear.boo" - ["server"]=> - string(16) "boo.pear.php.net" - ["summary"]=> - string(5) "booya" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.5" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.1.0" - } - } - } - } - ["deps"]=> - array(1) { - [1]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } -} -string(823) " - - - pear5 - PEAR packages for PHP 5 - pear.php.net - - - Quality Assurance releases of unmaintained packages - - PEAR - - - - - booya - - PEAR - - - - - - - - -" -after re-parsing -bool(true) -array(6) { - ["version"]=> - string(3) "1.0" - ["name"]=> - string(5) "pear5" - ["summary"]=> - string(23) "PEAR packages for PHP 5" - ["server"]=> - string(12) "pear.php.net" - ["subchannels"]=> - array(2) { - [1]=> - array(4) { - ["name"]=> - string(8) "pear5.qa" - ["server"]=> - string(15) "qa.pear.php.net" - ["summary"]=> - string(51) "Quality Assurance releases of unmaintained packages" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.4" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - } - [2]=> - array(4) { - ["name"]=> - string(8) "pear.boo" - ["server"]=> - string(16) "boo.pear.php.net" - ["summary"]=> - string(5) "booya" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.5" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.1.0" - } - } - } - } - ["deps"]=> - array(1) { - [1]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } -} -string(823) " - - - pear5 - PEAR packages for PHP 5 - pear.php.net - - - Quality Assurance releases of unmaintained packages - - PEAR - - - - - booya - - PEAR - - - - - - - - -" - -test add packagenameregex -array(7) { - ["version"]=> - string(3) "1.0" - ["name"]=> - string(5) "pear5" - ["summary"]=> - string(23) "PEAR packages for PHP 5" - ["server"]=> - string(12) "pear.php.net" - ["subchannels"]=> - array(2) { - [1]=> - array(4) { - ["name"]=> - string(8) "pear5.qa" - ["server"]=> - string(15) "qa.pear.php.net" - ["summary"]=> - string(51) "Quality Assurance releases of unmaintained packages" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.4" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - } - [2]=> - array(4) { - ["name"]=> - string(8) "pear.boo" - ["server"]=> - string(16) "boo.pear.php.net" - ["summary"]=> - string(5) "booya" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.5" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.1.0" - } - } - } - } - ["deps"]=> - array(1) { - [1]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - ["packagenameregex"]=> - string(6) "[A-Z]+" -} -string(868) " - - - pear5 - PEAR packages for PHP 5 - pear.php.net - [A-Z]+ - - - Quality Assurance releases of unmaintained packages - - PEAR - - - - - booya - - PEAR - - - - - - - - -" -after re-parsing -bool(true) -array(7) { - ["version"]=> - string(3) "1.0" - ["name"]=> - string(5) "pear5" - ["summary"]=> - string(23) "PEAR packages for PHP 5" - ["server"]=> - string(12) "pear.php.net" - ["packagenameregex"]=> - string(6) "[A-Z]+" - ["subchannels"]=> - array(2) { - [1]=> - array(4) { - ["name"]=> - string(8) "pear5.qa" - ["server"]=> - string(15) "qa.pear.php.net" - ["summary"]=> - string(51) "Quality Assurance releases of unmaintained packages" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.4" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - } - [2]=> - array(4) { - ["name"]=> - string(8) "pear.boo" - ["server"]=> - string(16) "boo.pear.php.net" - ["summary"]=> - string(5) "booya" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.5" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.1.0" - } - } - } - } - ["deps"]=> - array(1) { - [1]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } -} -string(868) " - - - pear5 - PEAR packages for PHP 5 - pear.php.net - [A-Z]+ - - - Quality Assurance releases of unmaintained packages - - PEAR - - - - - booya - - PEAR - - - - - - - - -" - -test add protocols -array(8) { - ["version"]=> - string(3) "1.0" - ["name"]=> - string(5) "pear5" - ["summary"]=> - string(23) "PEAR packages for PHP 5" - ["server"]=> - string(12) "pear.php.net" - ["packagenameregex"]=> - string(6) "[A-Z]+" - ["subchannels"]=> - array(2) { - [1]=> - array(4) { - ["name"]=> - string(8) "pear5.qa" - ["server"]=> - string(15) "qa.pear.php.net" - ["summary"]=> - string(51) "Quality Assurance releases of unmaintained packages" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.4" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - } - [2]=> - array(4) { - ["name"]=> - string(8) "pear.boo" - ["server"]=> - string(16) "boo.pear.php.net" - ["summary"]=> - string(5) "booya" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.5" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.1.0" - } - } - } - } - ["deps"]=> - array(1) { - [1]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - ["provides"]=> - array(3) { - [1]=> - array(3) { - ["type"]=> - string(7) "xml-rpc" - ["version"]=> - string(3) "1.0" - ["name"]=> - string(15) "package.listall" - } - [2]=> - array(3) { - ["type"]=> - string(7) "xml-rpc" - ["version"]=> - string(3) "1.0" - ["name"]=> - string(12) "release.list" - } - [3]=> - array(2) { - ["type"]=> - string(3) "get" - ["version"]=> - string(3) "1.0" - } - } -} -string(1065) " - - - pear5 - PEAR packages for PHP 5 - pear.php.net - - package.listall - release.list - - - [A-Z]+ - - - Quality Assurance releases of unmaintained packages - - PEAR - - - - - booya - - PEAR - - - - - - - - -" -after re-parsing -bool(true) -array(8) { - ["version"]=> - string(3) "1.0" - ["name"]=> - string(5) "pear5" - ["summary"]=> - string(23) "PEAR packages for PHP 5" - ["server"]=> - string(12) "pear.php.net" - ["provides"]=> - array(3) { - [1]=> - array(3) { - ["type"]=> - string(7) "xml-rpc" - ["version"]=> - string(3) "1.0" - ["name"]=> - string(15) "package.listall" - } - [2]=> - array(3) { - ["type"]=> - string(7) "xml-rpc" - ["version"]=> - string(3) "1.0" - ["name"]=> - string(12) "release.list" - } - [3]=> - array(2) { - ["type"]=> - string(3) "get" - ["version"]=> - string(3) "1.0" - } - } - ["packagenameregex"]=> - string(6) "[A-Z]+" - ["subchannels"]=> - array(2) { - [1]=> - array(4) { - ["name"]=> - string(8) "pear5.qa" - ["server"]=> - string(15) "qa.pear.php.net" - ["summary"]=> - string(51) "Quality Assurance releases of unmaintained packages" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.4" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - } - [2]=> - array(4) { - ["name"]=> - string(8) "pear.boo" - ["server"]=> - string(16) "boo.pear.php.net" - ["summary"]=> - string(5) "booya" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.5" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.1.0" - } - } - } - } - ["deps"]=> - array(1) { - [1]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } -} -string(1065) " - - - pear5 - PEAR packages for PHP 5 - pear.php.net - - package.listall - release.list - - - [A-Z]+ - - - Quality Assurance releases of unmaintained packages - - PEAR - - - - - booya - - PEAR - - - - - - - - -" - -test add mirror -array(9) { - ["version"]=> - string(3) "1.0" - ["name"]=> - string(5) "pear5" - ["summary"]=> - string(23) "PEAR packages for PHP 5" - ["server"]=> - string(12) "pear.php.net" - ["provides"]=> - array(3) { - [1]=> - array(3) { - ["type"]=> - string(7) "xml-rpc" - ["version"]=> - string(3) "1.0" - ["name"]=> - string(15) "package.listall" - } - [2]=> - array(3) { - ["type"]=> - string(7) "xml-rpc" - ["version"]=> - string(3) "1.0" - ["name"]=> - string(12) "release.list" - } - [3]=> - array(2) { - ["type"]=> - string(3) "get" - ["version"]=> - string(3) "1.0" - } - } - ["packagenameregex"]=> - string(6) "[A-Z]+" - ["subchannels"]=> - array(2) { - [1]=> - array(4) { - ["name"]=> - string(8) "pear5.qa" - ["server"]=> - string(15) "qa.pear.php.net" - ["summary"]=> - string(51) "Quality Assurance releases of unmaintained packages" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.4" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - } - [2]=> - array(4) { - ["name"]=> - string(8) "pear.boo" - ["server"]=> - string(16) "boo.pear.php.net" - ["summary"]=> - string(5) "booya" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.5" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.1.0" - } - } - } - } - ["deps"]=> - array(1) { - [1]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - ["mirrors"]=> - array(1) { - [1]=> - array(3) { - ["type"]=> - string(6) "server" - ["name"]=> - string(14) "mirror.php.net" - ["provides"]=> - array(2) { - [1]=> - array(3) { - ["type"]=> - string(7) "xml-rpc" - ["version"]=> - string(3) "1.0" - ["name"]=> - string(15) "package.listall" - } - [2]=> - array(3) { - ["type"]=> - string(7) "xml-rpc" - ["version"]=> - string(3) "1.0" - ["name"]=> - string(12) "release.list" - } - } - } - } -} -string(1313) " - - - pear5 - PEAR packages for PHP 5 - pear.php.net - - package.listall - release.list - - - [A-Z]+ - - - - package.listall - release.list - - - - - - Quality Assurance releases of unmaintained packages - - PEAR - - - - - booya - - PEAR - - - - - - - - -" -after re-parsing -bool(true) -array(9) { - ["version"]=> - string(3) "1.0" - ["name"]=> - string(5) "pear5" - ["summary"]=> - string(23) "PEAR packages for PHP 5" - ["server"]=> - string(12) "pear.php.net" - ["provides"]=> - array(3) { - [1]=> - array(3) { - ["type"]=> - string(7) "xml-rpc" - ["version"]=> - string(3) "1.0" - ["name"]=> - string(15) "package.listall" - } - [2]=> - array(3) { - ["type"]=> - string(7) "xml-rpc" - ["version"]=> - string(3) "1.0" - ["name"]=> - string(12) "release.list" - } - [3]=> - array(2) { - ["type"]=> - string(3) "get" - ["version"]=> - string(3) "1.0" - } - } - ["packagenameregex"]=> - string(6) "[A-Z]+" - ["mirrors"]=> - array(1) { - [1]=> - array(3) { - ["type"]=> - string(6) "server" - ["name"]=> - string(14) "mirror.php.net" - ["provides"]=> - array(2) { - [1]=> - array(3) { - ["type"]=> - string(7) "xml-rpc" - ["version"]=> - string(3) "1.0" - ["name"]=> - string(15) "package.listall" - } - [2]=> - array(3) { - ["type"]=> - string(7) "xml-rpc" - ["version"]=> - string(3) "1.0" - ["name"]=> - string(12) "release.list" - } - } - } - } - ["subchannels"]=> - array(2) { - [1]=> - array(4) { - ["name"]=> - string(8) "pear5.qa" - ["server"]=> - string(15) "qa.pear.php.net" - ["summary"]=> - string(51) "Quality Assurance releases of unmaintained packages" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.4" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } - } - [2]=> - array(4) { - ["name"]=> - string(8) "pear.boo" - ["server"]=> - string(16) "boo.pear.php.net" - ["summary"]=> - string(5) "booya" - ["deps"]=> - array(2) { - [1]=> - array(4) { - ["type"]=> - string(3) "pkg" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(3) "1.5" - ["name"]=> - string(4) "PEAR" - } - [2]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.1.0" - } - } - } - } - ["deps"]=> - array(1) { - [1]=> - array(3) { - ["type"]=> - string(3) "php" - ["rel"]=> - string(2) "ge" - ["version"]=> - string(5) "5.0.0" - } - } -} -string(1313) " - - - pear5 - PEAR packages for PHP 5 - pear.php.net - - package.listall - release.list - - - [A-Z]+ - - - - package.listall - release.list - - - - - - Quality Assurance releases of unmaintained packages - - PEAR - - - - - booya - - PEAR - - - - - - - - -" \ No newline at end of file diff --git a/pear/tests/pear_common_analyzeSC.phpt b/pear/tests/pear_common_analyzeSC.phpt deleted file mode 100644 index 0c15a66c8d..0000000000 --- a/pear/tests/pear_common_analyzeSC.phpt +++ /dev/null @@ -1,165 +0,0 @@ ---TEST-- -PEAR_Common::analyzeSourceCode test ---SKIPIF-- - ---FILE-- - -'; -$fp = fopen($testdir . DIRECTORY_SEPARATOR . 'test1.php', 'w'); -fwrite($fp, $test1); -fclose($fp); - -$ret = PEAR_Common::analyzeSourceCode($testdir . DIRECTORY_SEPARATOR . 'test1.php'); -echo "second test: returns false with invalid PHP? "; -echo $ret ? "no\n" : "yes\n"; -unlink($testdir . DIRECTORY_SEPARATOR . 'test1.php'); - -$test3 = ' - -'; -$fp = fopen($testdir . DIRECTORY_SEPARATOR . 'test3.php', 'w'); -fwrite($fp, $test3); -fclose($fp); - -$ret = PEAR_Common::analyzeSourceCode($testdir . DIRECTORY_SEPARATOR . 'test3.php'); -echo "fourth test: returns false with invalid PHP? "; -echo $ret ? "no\n" : "yes\n"; -unlink($testdir . DIRECTORY_SEPARATOR . 'test3.php'); - -$test4 = ' - -'; -$fp = fopen($testdir . DIRECTORY_SEPARATOR . 'test4.php', 'w'); -fwrite($fp, $test4); -fclose($fp); - -$ret = PEAR_Common::analyzeSourceCode($testdir . DIRECTORY_SEPARATOR . 'test4.php'); -echo "fifth test: returns false with invalid PHP? "; -echo $ret ? "no\n" : "yes\n"; -unlink($testdir . DIRECTORY_SEPARATOR . 'test4.php'); - -$test5 = ' - -'; -$fp = fopen($testdir . DIRECTORY_SEPARATOR . 'test5.php', 'w'); -fwrite($fp, $test5); -fclose($fp); - -$ret = PEAR_Common::analyzeSourceCode($testdir . DIRECTORY_SEPARATOR . 'test5.php'); -echo "sixth test: returns false with valid PHP? "; -echo $ret ? "no\n" : "yes\n"; -$ret['source_file'] = str_replace(array(dirname(__FILE__),DIRECTORY_SEPARATOR), array('', '/'), $ret['source_file']); -var_dump($ret); -unlink($testdir . DIRECTORY_SEPARATOR . 'test5.php'); - -rmdir($testdir); -?> ---EXPECT-- -first test: returns false with non-existing filename? yes -second test: returns false with invalid PHP? yes -fourth test: returns false with invalid PHP? yes -fifth test: returns false with invalid PHP? yes -sixth test: returns false with valid PHP? no -array(6) { - ["source_file"]=> - string(36) "/pear_common_analyzeSCtest/test5.php" - ["declared_classes"]=> - array(2) { - [0]=> - string(5) "test2" - [1]=> - string(4) "blah" - } - ["declared_methods"]=> - array(2) { - ["test2"]=> - array(1) { - [0]=> - string(5) "test2" - } - ["blah"]=> - array(1) { - [0]=> - string(4) "blah" - } - } - ["declared_functions"]=> - array(2) { - [0]=> - string(4) "test" - [1]=> - string(4) "fool" - } - ["used_classes"]=> - array(2) { - [0]=> - string(4) "Greg" - [1]=> - string(6) "Pierre" - } - ["inheritance"]=> - array(1) { - ["blah"]=> - string(5) "test2" - } -} \ No newline at end of file diff --git a/pear/tests/pear_common_buildProvidesArray.phpt b/pear/tests/pear_common_buildProvidesArray.phpt deleted file mode 100644 index 574ed4465c..0000000000 --- a/pear/tests/pear_common_buildProvidesArray.phpt +++ /dev/null @@ -1,152 +0,0 @@ ---TEST-- -PEAR_Common::buildProvidesArray test ---SKIPIF-- - ---FILE-- - -'; -$fp = fopen($testdir . DIRECTORY_SEPARATOR . 'test5.php', 'w'); -fwrite($fp, $test5); -fclose($fp); - -$ret = PEAR_Common::analyzeSourceCode($testdir . DIRECTORY_SEPARATOR . 'test5.php'); -echo "pre-test: returns false with valid PHP? "; -echo $ret ? "no\n" : "yes\n"; -$ret['source_file'] = str_replace(array(dirname(__FILE__),DIRECTORY_SEPARATOR), array('', '/'), $ret['source_file']); -var_dump($ret); -unlink($testdir . DIRECTORY_SEPARATOR . 'test5.php'); -$common = new PEAR_Common; -$common->buildProvidesArray($ret); -var_dump($common->pkginfo); -rmdir($testdir); -?> ---EXPECT-- -pre-test: returns false with valid PHP? no -array(6) { - ["source_file"]=> - string(45) "/pear_common_buildProvidesArraytest/test5.php" - ["declared_classes"]=> - array(2) { - [0]=> - string(5) "test2" - [1]=> - string(4) "blah" - } - ["declared_methods"]=> - array(2) { - ["test2"]=> - array(1) { - [0]=> - string(5) "test2" - } - ["blah"]=> - array(1) { - [0]=> - string(4) "blah" - } - } - ["declared_functions"]=> - array(2) { - [0]=> - string(4) "test" - [1]=> - string(4) "fool" - } - ["used_classes"]=> - array(2) { - [0]=> - string(4) "Greg" - [1]=> - string(6) "Pierre" - } - ["inheritance"]=> - array(1) { - ["blah"]=> - string(5) "test2" - } -} -array(1) { - ["provides"]=> - array(4) { - ["class;test2"]=> - array(3) { - ["file"]=> - string(9) "test5.php" - ["type"]=> - string(5) "class" - ["name"]=> - string(5) "test2" - } - ["class;blah"]=> - array(4) { - ["file"]=> - string(9) "test5.php" - ["type"]=> - string(5) "class" - ["name"]=> - string(4) "blah" - ["extends"]=> - string(5) "test2" - } - ["function;test"]=> - array(3) { - ["file"]=> - string(9) "test5.php" - ["type"]=> - string(8) "function" - ["name"]=> - string(4) "test" - } - ["function;fool"]=> - array(3) { - ["file"]=> - string(9) "test5.php" - ["type"]=> - string(8) "function" - ["name"]=> - string(4) "fool" - } - } -} \ No newline at end of file diff --git a/pear/tests/pear_common_downloadHttp.phpt b/pear/tests/pear_common_downloadHttp.phpt deleted file mode 100644 index 86f7cc2bf9..0000000000 --- a/pear/tests/pear_common_downloadHttp.phpt +++ /dev/null @@ -1,214 +0,0 @@ ---TEST-- -PEAR_Common::downloadHttp test ---SKIPIF-- - ---FILE-- - 'pear.php.net', - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', - 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', - 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', - 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', - 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test', - 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',)); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w'); -fwrite($fp, $config); -fclose($fp); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.ini', 'w'); -fwrite($fp, $config); -fclose($fp); - -putenv('PHP_PEAR_SYSCONF_DIR=' . $temp_path); -$home = getenv('HOME'); -if (!empty($home)) { - // for PEAR_Config initialization - putenv('HOME="'.$temp_path); -} - -require_once "PEAR/Common.php"; - -$common = &new PEAR_Common; - -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'catchit'); - -function catchit($err) -{ - echo "Caught error: " . $err->getMessage() . "\n"; -} - -echo "Test static:\n"; - -echo "Simple: "; -PEAR_Common::downloadHttp('http://test.pear.php.net/testdownload.tgz', $ui, $temp_path); -$firstone = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'testdownload.tgz')); -$secondone = implode('', file($temp_path . DIRECTORY_SEPARATOR . 'testdownload.tgz')); -echo ($firstone == $secondone) ? "passed\n" : "failed\n"; - -echo "Simple fail:\n"; -PEAR_Common::downloadHttp('http://test.poop.php.net/stuff.tgz', $ui, $temp_path); - -echo "Test callback:\n"; - -$ui = 'My UI'; - -PEAR_Common::downloadHttp('http://test.pear.php.net/testdownload.tgz', $ui, $temp_path, 'myCallback'); -$firstone = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'testdownload.tgz')); -$secondone = implode('', file($temp_path . DIRECTORY_SEPARATOR . 'testdownload.tgz')); -echo "Working Callback: "; -echo ($firstone == $secondone) ? "passed\n" : "failed\n"; - - -function myCallback($message, $payload) -{ - $stuff = serialize($payload); - echo "Callback Message: $message\n"; - echo "Callback Payload: $stuff\n"; -} - -echo "Callback fail:\n"; -PEAR_Common::downloadHttp('http://test.poop.php.net/stuff.tgz', $ui, $temp_path, 'myCallback'); - -cleanall($temp_path); - -// ------------------------------------------------------------------------- // - -function cleanall($dir) -{ - $dp = opendir($dir); - while ($ent = readdir($dp)) { - if ($ent == '.' || $ent == '..') { - continue; - } - if (is_dir($dir . DIRECTORY_SEPARATOR . $ent)) { - cleanall($dir . DIRECTORY_SEPARATOR . $ent); - } else { - unlink($dir . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir($dir); -} -?> ---EXPECT-- -Test static: -Simple: passed -Simple fail: -Caught error: Connection to `test.poop.php.net:80' failed: The operation completed successfully. - -Test callback: -Callback Message: setup -Callback Payload: a:1:{i:0;s:5:"My UI";} -Callback Message: message -Callback Payload: s:35:"Using HTTP proxy test.pear.php.net:"; -Callback Message: saveas -Callback Payload: s:16:"testdownload.tgz"; -Callback Message: start -Callback Payload: a:2:{i:0;s:16:"testdownload.tgz";i:1;s:5:"41655";} -Callback Message: bytesread -Callback Payload: i:1024; -Callback Message: bytesread -Callback Payload: i:2048; -Callback Message: bytesread -Callback Payload: i:3072; -Callback Message: bytesread -Callback Payload: i:4096; -Callback Message: bytesread -Callback Payload: i:5120; -Callback Message: bytesread -Callback Payload: i:6144; -Callback Message: bytesread -Callback Payload: i:7168; -Callback Message: bytesread -Callback Payload: i:8192; -Callback Message: bytesread -Callback Payload: i:9216; -Callback Message: bytesread -Callback Payload: i:10240; -Callback Message: bytesread -Callback Payload: i:11264; -Callback Message: bytesread -Callback Payload: i:12288; -Callback Message: bytesread -Callback Payload: i:13312; -Callback Message: bytesread -Callback Payload: i:14336; -Callback Message: bytesread -Callback Payload: i:15360; -Callback Message: bytesread -Callback Payload: i:16384; -Callback Message: bytesread -Callback Payload: i:17408; -Callback Message: bytesread -Callback Payload: i:18432; -Callback Message: bytesread -Callback Payload: i:19456; -Callback Message: bytesread -Callback Payload: i:20480; -Callback Message: bytesread -Callback Payload: i:21504; -Callback Message: bytesread -Callback Payload: i:22528; -Callback Message: bytesread -Callback Payload: i:23552; -Callback Message: bytesread -Callback Payload: i:24576; -Callback Message: bytesread -Callback Payload: i:25600; -Callback Message: bytesread -Callback Payload: i:26624; -Callback Message: bytesread -Callback Payload: i:27648; -Callback Message: bytesread -Callback Payload: i:28672; -Callback Message: bytesread -Callback Payload: i:29696; -Callback Message: bytesread -Callback Payload: i:30720; -Callback Message: bytesread -Callback Payload: i:31744; -Callback Message: bytesread -Callback Payload: i:32768; -Callback Message: bytesread -Callback Payload: i:33792; -Callback Message: bytesread -Callback Payload: i:34816; -Callback Message: bytesread -Callback Payload: i:35840; -Callback Message: bytesread -Callback Payload: i:36864; -Callback Message: bytesread -Callback Payload: i:37888; -Callback Message: bytesread -Callback Payload: i:38912; -Callback Message: bytesread -Callback Payload: i:39936; -Callback Message: bytesread -Callback Payload: i:40960; -Callback Message: bytesread -Callback Payload: i:41655; -Callback Message: done -Callback Payload: i:41655; -Working Callback: passed -Callback fail: -Callback Message: setup -Callback Payload: a:1:{i:0;s:5:"My UI";} -Callback Message: message -Callback Payload: s:35:"Using HTTP proxy test.poop.php.net:"; -Callback Message: connfailed -Callback Payload: a:4:{i:0;s:17:"test.poop.php.net";i:1;i:80;i:2;i:0;i:3;s:39:"The operation completed successfully. -";} -Caught error: Connection to `test.poop.php.net:80' failed: The operation completed successfully. \ No newline at end of file diff --git a/pear/tests/pear_common_infoFromString.phpt b/pear/tests/pear_common_infoFromString.phpt deleted file mode 100644 index f3d40464c6..0000000000 --- a/pear/tests/pear_common_infoFromString.phpt +++ /dev/null @@ -1,1752 +0,0 @@ ---TEST-- -PEAR_Common::infoFromString test ---SKIPIF-- - ---FILE-- -getMessage() . "\n"; -} - -echo "Test invalid XML\n"; - -$common->infoFromString('\\goober'); - -echo "Test valid XML, not a package.xml\n"; - -$common->infoFromString('' . - "\n"); - -echo "Test valid package.xml, invalid version number\n"; - -$common->infoFromString('' . - ''); - -echo "Test empty package.xml\n"; - -$ret = $common->infoFromString('' . - ''); - -var_dump($ret); - -echo "Test 1\n"; - -$ret = $common->infoFromString('' . - 'test'); - -var_dump($ret); - -echo "Test 2\n"; - -$ret = $common->infoFromString('' . - 'testPEAR test' . - ''); - -var_dump($ret); - -echo "Test 3\n"; - -$ret = $common->infoFromString('' . - 'testPEAR test' . - 'The test'); - -var_dump($ret); - -echo "Test 4\n"; - -$ret = $common->infoFromString('' . - 'testPEAR test' . - 'The testPHP License'); - -var_dump($ret); - -echo "Test 5\n"; - -$ret = $common->infoFromString('' . - 'testPEAR test' . - 'The testPHP License - - test - lead - test tester - test@php.net - -'); - -var_dump($ret); - -echo "Test 6\n"; - -$ret = $common->infoFromString('' . - 'testPEAR test' . - 'The testPHP License - - test - lead - test tester - test@php.net - - 1.3b4 -'); - -var_dump($ret); - -echo "Test 7\n"; - -$ret = $common->infoFromString('' . - 'testPEAR test' . - 'The testPHP License - - test - lead - test tester - test@php.net - - 1.3b4 - 2003-11-17 - beta - test -'); - -var_dump($ret); - -echo "Test 8\n"; - -$ret = $common->infoFromString('' . - 'testPEAR test' . - 'The testPHP License - - test - lead - test tester - test@php.net - - 1.3b4 - 2003-11-17 - beta - test - -'); - -var_dump($ret); - -echo "Test 9\n"; - -$ret = $common->infoFromString('' . - 'testPEAR test' . - 'The testPHP License - - test - lead - test tester - test@php.net - - 1.3b4 - 2003-11-17 - beta - test - - - xmlrpc - - -'); - -var_dump($ret); - -echo "Test 10\n"; - -$ret = $common->infoFromString('' . - 'testPEAR test' . - 'The testPHP License - - test - lead - test tester - test@php.net - - 1.3b4 - 2003-11-17 - beta - test - - - xmlrpc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -'); - -var_dump($ret); - -echo "Test 11\n"; - -$ret = $common->infoFromString('' . - 'testPEAR test' . - 'The testPHP License - - test - lead - test tester - test@php.net - - 1.3b4 - 2003-11-17 - beta - test - - - xmlrpc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -'); - -var_dump($ret); - -echo "Test 12\n"; - -$ret = $common->infoFromString('' . - 'testPEAR test' . - 'The testPHP License - - test - lead - test tester - test@php.net - - 1.3b4 - 2003-11-17 - beta - test - - - xmlrpc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.1 - 2003-07-21 - PHP License - alpha - First release of test - - - 0.2 - 2003-07-21 - PHP License - alpha - Generation of package.xml from scratch is now supported. In addition, -generation of <provides> is supported and so is addition of -maintainers and configure options - -- Fixed a bug in <release> generation -- Added _addProvides() to generate a <provides> section - - -'); - -var_dump($ret); - -?> ---EXPECT-- -Test invalid XML -Caught error: XML error: not well-formed (invalid token) at line 1 -Test valid XML, not a package.xml -Caught error: Invalid Package File, no tag -Test valid package.xml, invalid version number -Caught error: No handlers for package.xml version 10000000 -Test empty package.xml -array(2) { - ["provides"]=> - array(0) { - } - ["filelist"]=> - &array(0) { - } -} -Test 1 -array(3) { - ["provides"]=> - array(0) { - } - ["filelist"]=> - &array(0) { - } - ["package"]=> - string(4) "test" -} -Test 2 -array(4) { - ["provides"]=> - array(0) { - } - ["filelist"]=> - &array(0) { - } - ["package"]=> - string(4) "test" - ["summary"]=> - string(9) "PEAR test" -} -Test 3 -array(5) { - ["provides"]=> - array(0) { - } - ["filelist"]=> - &array(0) { - } - ["package"]=> - string(4) "test" - ["summary"]=> - string(9) "PEAR test" - ["description"]=> - string(8) "The test" -} -Test 4 -array(6) { - ["provides"]=> - array(0) { - } - ["filelist"]=> - &array(0) { - } - ["package"]=> - string(4) "test" - ["summary"]=> - string(9) "PEAR test" - ["description"]=> - string(8) "The test" - ["release_license"]=> - string(11) "PHP License" -} -Test 5 -array(7) { - ["provides"]=> - array(0) { - } - ["filelist"]=> - &array(0) { - } - ["package"]=> - string(4) "test" - ["summary"]=> - string(9) "PEAR test" - ["description"]=> - string(8) "The test" - ["release_license"]=> - string(11) "PHP License" - ["maintainers"]=> - array(1) { - [0]=> - &array(4) { - ["handle"]=> - string(4) "test" - ["role"]=> - string(4) "lead" - ["name"]=> - string(11) "test tester" - ["email"]=> - string(12) "test@php.net" - } - } -} -Test 6 -array(8) { - ["provides"]=> - array(0) { - } - ["filelist"]=> - &array(0) { - } - ["package"]=> - string(4) "test" - ["summary"]=> - string(9) "PEAR test" - ["description"]=> - string(8) "The test" - ["release_license"]=> - string(11) "PHP License" - ["maintainers"]=> - array(1) { - [0]=> - &array(4) { - ["handle"]=> - string(4) "test" - ["role"]=> - string(4) "lead" - ["name"]=> - string(11) "test tester" - ["email"]=> - string(12) "test@php.net" - } - } - ["version"]=> - string(5) "1.3b4" -} -Test 7 -array(11) { - ["provides"]=> - array(0) { - } - ["filelist"]=> - &array(0) { - } - ["package"]=> - string(4) "test" - ["summary"]=> - string(9) "PEAR test" - ["description"]=> - string(8) "The test" - ["release_license"]=> - string(11) "PHP License" - ["maintainers"]=> - array(1) { - [0]=> - &array(4) { - ["handle"]=> - string(4) "test" - ["role"]=> - string(4) "lead" - ["name"]=> - string(11) "test tester" - ["email"]=> - string(12) "test@php.net" - } - } - ["version"]=> - string(5) "1.3b4" - ["release_date"]=> - string(10) "2003-11-17" - ["release_state"]=> - string(4) "beta" - ["release_notes"]=> - string(4) "test" -} -Test 8 -array(11) { - ["provides"]=> - array(1) { - ["class;furngy"]=> - array(3) { - ["type"]=> - string(5) "class" - ["name"]=> - string(6) "furngy" - ["explicit"]=> - bool(true) - } - } - ["filelist"]=> - &array(0) { - } - ["package"]=> - string(4) "test" - ["summary"]=> - string(9) "PEAR test" - ["description"]=> - string(8) "The test" - ["release_license"]=> - string(11) "PHP License" - ["maintainers"]=> - array(1) { - [0]=> - &array(4) { - ["handle"]=> - string(4) "test" - ["role"]=> - string(4) "lead" - ["name"]=> - string(11) "test tester" - ["email"]=> - string(12) "test@php.net" - } - } - ["version"]=> - string(5) "1.3b4" - ["release_date"]=> - string(10) "2003-11-17" - ["release_state"]=> - string(4) "beta" - ["release_notes"]=> - string(4) "test" -} -Test 9 -array(12) { - ["provides"]=> - array(1) { - ["class;furngy"]=> - array(3) { - ["type"]=> - string(5) "class" - ["name"]=> - string(6) "furngy" - ["explicit"]=> - bool(true) - } - } - ["filelist"]=> - &array(0) { - } - ["package"]=> - string(4) "test" - ["summary"]=> - string(9) "PEAR test" - ["description"]=> - string(8) "The test" - ["release_license"]=> - string(11) "PHP License" - ["maintainers"]=> - array(1) { - [0]=> - &array(4) { - ["handle"]=> - string(4) "test" - ["role"]=> - string(4) "lead" - ["name"]=> - string(11) "test tester" - ["email"]=> - string(12) "test@php.net" - } - } - ["version"]=> - string(5) "1.3b4" - ["release_date"]=> - string(10) "2003-11-17" - ["release_state"]=> - string(4) "beta" - ["release_notes"]=> - string(4) "test" - ["release_deps"]=> - array(1) { - [1]=> - array(4) { - ["type"]=> - string(3) "ext" - ["rel"]=> - string(3) "has" - ["optional"]=> - string(3) "yes" - ["name"]=> - string(6) "xmlrpc" - } - } -} -Test 10 -array(12) { - ["provides"]=> - array(1) { - ["class;furngy"]=> - array(3) { - ["type"]=> - string(5) "class" - ["name"]=> - string(6) "furngy" - ["explicit"]=> - bool(true) - } - } - ["filelist"]=> - &array(28) { - ["package.dtd"]=> - array(1) { - ["role"]=> - string(4) "data" - } - ["template.spec"]=> - array(1) { - ["role"]=> - string(4) "data" - } - ["PEAR.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["System.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Autoloader.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Auth.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Build.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Common.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Config.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Install.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Package.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Registry.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Remote.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Mirror.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Common.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Config.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Dependency.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Frontend\CLI.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Builder.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Installer.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Packager.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Registry.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Remote.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["OS\Guess.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["scripts\pear.sh"]=> - array(4) { - ["role"]=> - string(6) "script" - ["install-as"]=> - string(4) "pear" - ["baseinstalldir"]=> - string(1) "/" - ["replacements"]=> - array(4) { - [0]=> - array(3) { - ["from"]=> - string(9) "@php_bin@" - ["to"]=> - string(7) "php_bin" - ["type"]=> - string(11) "pear-config" - } - [1]=> - array(3) { - ["from"]=> - string(9) "@php_dir@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - [2]=> - array(3) { - ["from"]=> - string(14) "@pear_version@" - ["to"]=> - string(7) "version" - ["type"]=> - string(12) "package-info" - } - [3]=> - array(3) { - ["from"]=> - string(14) "@include_path@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - } - } - ["scripts\pear.bat"]=> - array(5) { - ["role"]=> - string(6) "script" - ["platform"]=> - string(7) "windows" - ["install-as"]=> - string(8) "pear.bat" - ["baseinstalldir"]=> - string(1) "/" - ["replacements"]=> - array(3) { - [0]=> - array(3) { - ["from"]=> - string(9) "@bin_dir@" - ["to"]=> - string(7) "bin_dir" - ["type"]=> - string(11) "pear-config" - } - [1]=> - array(3) { - ["from"]=> - string(9) "@php_bin@" - ["to"]=> - string(7) "php_bin" - ["type"]=> - string(11) "pear-config" - } - [2]=> - array(3) { - ["from"]=> - string(14) "@include_path@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - } - } - ["scripts\pearcmd.php"]=> - array(4) { - ["role"]=> - string(3) "php" - ["install-as"]=> - string(11) "pearcmd.php" - ["baseinstalldir"]=> - string(1) "/" - ["replacements"]=> - array(4) { - [0]=> - array(3) { - ["from"]=> - string(9) "@php_bin@" - ["to"]=> - string(7) "php_bin" - ["type"]=> - string(11) "pear-config" - } - [1]=> - array(3) { - ["from"]=> - string(9) "@php_dir@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - [2]=> - array(3) { - ["from"]=> - string(14) "@pear_version@" - ["to"]=> - string(7) "version" - ["type"]=> - string(12) "package-info" - } - [3]=> - array(3) { - ["from"]=> - string(14) "@include_path@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - } - } - } - ["package"]=> - string(4) "test" - ["summary"]=> - string(9) "PEAR test" - ["description"]=> - string(8) "The test" - ["release_license"]=> - string(11) "PHP License" - ["maintainers"]=> - array(1) { - [0]=> - &array(4) { - ["handle"]=> - string(4) "test" - ["role"]=> - string(4) "lead" - ["name"]=> - string(11) "test tester" - ["email"]=> - string(12) "test@php.net" - } - } - ["version"]=> - string(5) "1.3b4" - ["release_date"]=> - string(10) "2003-11-17" - ["release_state"]=> - string(4) "beta" - ["release_notes"]=> - string(4) "test" - ["release_deps"]=> - array(1) { - [1]=> - array(4) { - ["type"]=> - string(3) "ext" - ["rel"]=> - string(3) "has" - ["optional"]=> - string(3) "yes" - ["name"]=> - string(6) "xmlrpc" - } - } -} -Test 11 -array(13) { - ["provides"]=> - array(1) { - ["class;furngy"]=> - array(3) { - ["type"]=> - string(5) "class" - ["name"]=> - string(6) "furngy" - ["explicit"]=> - bool(true) - } - } - ["filelist"]=> - &array(28) { - ["package.dtd"]=> - array(1) { - ["role"]=> - string(4) "data" - } - ["template.spec"]=> - array(1) { - ["role"]=> - string(4) "data" - } - ["PEAR.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["System.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Autoloader.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Auth.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Build.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Common.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Config.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Install.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Package.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Registry.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Remote.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Mirror.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Common.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Config.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Dependency.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Frontend\CLI.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Builder.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Installer.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Packager.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Registry.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Remote.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["OS\Guess.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["scripts\pear.sh"]=> - array(4) { - ["role"]=> - string(6) "script" - ["install-as"]=> - string(4) "pear" - ["baseinstalldir"]=> - string(1) "/" - ["replacements"]=> - array(4) { - [0]=> - array(3) { - ["from"]=> - string(9) "@php_bin@" - ["to"]=> - string(7) "php_bin" - ["type"]=> - string(11) "pear-config" - } - [1]=> - array(3) { - ["from"]=> - string(9) "@php_dir@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - [2]=> - array(3) { - ["from"]=> - string(14) "@pear_version@" - ["to"]=> - string(7) "version" - ["type"]=> - string(12) "package-info" - } - [3]=> - array(3) { - ["from"]=> - string(14) "@include_path@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - } - } - ["scripts\pear.bat"]=> - array(5) { - ["role"]=> - string(6) "script" - ["platform"]=> - string(7) "windows" - ["install-as"]=> - string(8) "pear.bat" - ["baseinstalldir"]=> - string(1) "/" - ["replacements"]=> - array(3) { - [0]=> - array(3) { - ["from"]=> - string(9) "@bin_dir@" - ["to"]=> - string(7) "bin_dir" - ["type"]=> - string(11) "pear-config" - } - [1]=> - array(3) { - ["from"]=> - string(9) "@php_bin@" - ["to"]=> - string(7) "php_bin" - ["type"]=> - string(11) "pear-config" - } - [2]=> - array(3) { - ["from"]=> - string(14) "@include_path@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - } - } - ["scripts\pearcmd.php"]=> - array(4) { - ["role"]=> - string(3) "php" - ["install-as"]=> - string(11) "pearcmd.php" - ["baseinstalldir"]=> - string(1) "/" - ["replacements"]=> - array(4) { - [0]=> - array(3) { - ["from"]=> - string(9) "@php_bin@" - ["to"]=> - string(7) "php_bin" - ["type"]=> - string(11) "pear-config" - } - [1]=> - array(3) { - ["from"]=> - string(9) "@php_dir@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - [2]=> - array(3) { - ["from"]=> - string(14) "@pear_version@" - ["to"]=> - string(7) "version" - ["type"]=> - string(12) "package-info" - } - [3]=> - array(3) { - ["from"]=> - string(14) "@include_path@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - } - } - } - ["package"]=> - string(4) "test" - ["summary"]=> - string(9) "PEAR test" - ["description"]=> - string(8) "The test" - ["release_license"]=> - string(11) "PHP License" - ["maintainers"]=> - array(1) { - [0]=> - &array(4) { - ["handle"]=> - string(4) "test" - ["role"]=> - string(4) "lead" - ["name"]=> - string(11) "test tester" - ["email"]=> - string(12) "test@php.net" - } - } - ["version"]=> - string(5) "1.3b4" - ["release_date"]=> - string(10) "2003-11-17" - ["release_state"]=> - string(4) "beta" - ["release_notes"]=> - string(4) "test" - ["release_deps"]=> - array(1) { - [1]=> - array(4) { - ["type"]=> - string(3) "ext" - ["rel"]=> - string(3) "has" - ["optional"]=> - string(3) "yes" - ["name"]=> - string(6) "xmlrpc" - } - } - ["configure_options"]=> - array(1) { - [0]=> - array(3) { - ["name"]=> - string(4) "test" - ["prompt"]=> - string(15) "The prompt test" - ["default"]=> - string(3) "foo" - } - } -} -Test 12 -array(14) { - ["provides"]=> - array(1) { - ["class;furngy"]=> - array(3) { - ["type"]=> - string(5) "class" - ["name"]=> - string(6) "furngy" - ["explicit"]=> - bool(true) - } - } - ["filelist"]=> - &array(28) { - ["package.dtd"]=> - array(1) { - ["role"]=> - string(4) "data" - } - ["template.spec"]=> - array(1) { - ["role"]=> - string(4) "data" - } - ["PEAR.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["System.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Autoloader.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Auth.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Build.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Common.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Config.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Install.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Package.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Registry.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Remote.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Command\Mirror.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Common.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Config.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Dependency.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Frontend\CLI.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Builder.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Installer.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Packager.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Registry.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["PEAR\Remote.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["OS\Guess.php"]=> - array(1) { - ["role"]=> - string(3) "php" - } - ["scripts\pear.sh"]=> - array(4) { - ["role"]=> - string(6) "script" - ["install-as"]=> - string(4) "pear" - ["baseinstalldir"]=> - string(1) "/" - ["replacements"]=> - array(4) { - [0]=> - array(3) { - ["from"]=> - string(9) "@php_bin@" - ["to"]=> - string(7) "php_bin" - ["type"]=> - string(11) "pear-config" - } - [1]=> - array(3) { - ["from"]=> - string(9) "@php_dir@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - [2]=> - array(3) { - ["from"]=> - string(14) "@pear_version@" - ["to"]=> - string(7) "version" - ["type"]=> - string(12) "package-info" - } - [3]=> - array(3) { - ["from"]=> - string(14) "@include_path@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - } - } - ["scripts\pear.bat"]=> - array(5) { - ["role"]=> - string(6) "script" - ["platform"]=> - string(7) "windows" - ["install-as"]=> - string(8) "pear.bat" - ["baseinstalldir"]=> - string(1) "/" - ["replacements"]=> - array(3) { - [0]=> - array(3) { - ["from"]=> - string(9) "@bin_dir@" - ["to"]=> - string(7) "bin_dir" - ["type"]=> - string(11) "pear-config" - } - [1]=> - array(3) { - ["from"]=> - string(9) "@php_bin@" - ["to"]=> - string(7) "php_bin" - ["type"]=> - string(11) "pear-config" - } - [2]=> - array(3) { - ["from"]=> - string(14) "@include_path@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - } - } - ["scripts\pearcmd.php"]=> - array(4) { - ["role"]=> - string(3) "php" - ["install-as"]=> - string(11) "pearcmd.php" - ["baseinstalldir"]=> - string(1) "/" - ["replacements"]=> - array(4) { - [0]=> - array(3) { - ["from"]=> - string(9) "@php_bin@" - ["to"]=> - string(7) "php_bin" - ["type"]=> - string(11) "pear-config" - } - [1]=> - array(3) { - ["from"]=> - string(9) "@php_dir@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - [2]=> - array(3) { - ["from"]=> - string(14) "@pear_version@" - ["to"]=> - string(7) "version" - ["type"]=> - string(12) "package-info" - } - [3]=> - array(3) { - ["from"]=> - string(14) "@include_path@" - ["to"]=> - string(7) "php_dir" - ["type"]=> - string(11) "pear-config" - } - } - } - } - ["package"]=> - string(4) "test" - ["summary"]=> - string(9) "PEAR test" - ["description"]=> - string(8) "The test" - ["release_license"]=> - string(11) "PHP License" - ["maintainers"]=> - array(1) { - [0]=> - &array(4) { - ["handle"]=> - string(4) "test" - ["role"]=> - string(4) "lead" - ["name"]=> - string(11) "test tester" - ["email"]=> - string(12) "test@php.net" - } - } - ["version"]=> - string(5) "1.3b4" - ["release_date"]=> - string(10) "2003-11-17" - ["release_state"]=> - string(4) "beta" - ["release_notes"]=> - string(4) "test" - ["release_deps"]=> - array(1) { - [1]=> - array(4) { - ["type"]=> - string(3) "ext" - ["rel"]=> - string(3) "has" - ["optional"]=> - string(3) "yes" - ["name"]=> - string(6) "xmlrpc" - } - } - ["configure_options"]=> - array(1) { - [0]=> - array(3) { - ["name"]=> - string(4) "test" - ["prompt"]=> - string(15) "The prompt test" - ["default"]=> - string(3) "foo" - } - } - ["changelog"]=> - array(2) { - [0]=> - &array(5) { - ["version"]=> - string(3) "0.1" - ["release_date"]=> - string(10) "2003-07-21" - ["release_license"]=> - string(11) "PHP License" - ["release_state"]=> - string(5) "alpha" - ["release_notes"]=> - string(22) "First release of test -" - } - [1]=> - &array(5) { - ["version"]=> - string(3) "0.2" - ["release_date"]=> - string(10) "2003-07-21" - ["release_license"]=> - string(11) "PHP License" - ["release_state"]=> - string(5) "alpha" - ["release_notes"]=> - string(260) "Generation of package.xml from scratch is now supported. In addition, -generation of is supported and so is addition of -maintainers and configure options - -- Fixed a bug in generation -- Added _addProvides() to generate a section -" - } - } -} \ No newline at end of file diff --git a/pear/tests/pear_common_sortPkgDeps.phpt b/pear/tests/pear_common_sortPkgDeps.phpt deleted file mode 100644 index 5097888ee4..0000000000 --- a/pear/tests/pear_common_sortPkgDeps.phpt +++ /dev/null @@ -1,73 +0,0 @@ ---TEST-- -PEAR_Common::sortPkgDeps test ---SKIPIF-- - ---FILE-- -infoFromAny('common_sortPkgDeps6_package.xml'), -$c->infoFromAny('common_sortPkgDeps2_package.xml'), -$c->infoFromAny('common_sortPkgDeps1_package.xml'), -$c->infoFromAny('common_sortPkgDeps4_package.xml'), -$c->infoFromAny('common_sortPkgDeps5_package.xml'), -$c->infoFromAny('common_sortPkgDeps3_package.xml'), -); - -echo "Test Install Sort:\n"; -$c->sortPkgDeps($packages); -dumpPacks($packages); - -echo "Test Uninstall Sort:\n"; -$c->sortPkgDeps($uninstallpackages, true); -dumpPacks($uninstallpackages); - -chdir($dir); - -function dumpPacks($p) -{ - echo "Packages(\n"; - foreach ($p as $inf) { - echo $inf['info']['package'] . ",\n"; - } - echo ")\n"; -} -?> ---EXPECT-- -Test Install Sort: -Packages( -pkg6, -pkg5, -pkg4, -pkg3, -pkg2, -pkg1, -) -Test Uninstall Sort: -Packages( -pkg1, -pkg2, -pkg3, -pkg5, -pkg4, -pkg6, -) \ No newline at end of file diff --git a/pear/tests/pear_common_validPackageVersion.phpt b/pear/tests/pear_common_validPackageVersion.phpt deleted file mode 100644 index c177bb202a..0000000000 --- a/pear/tests/pear_common_validPackageVersion.phpt +++ /dev/null @@ -1,81 +0,0 @@ ---TEST-- -PEAR_Common::validPackageVersion test ---SKIPIF-- - ---FILE-- - ---EXPECT-- -==Valid Tests== -1 valid -1.1 valid -1.1.1 valid -1.1.1.1 valid -1.1.1abc3 valid -1.234beta4 valid -1alpha3 valid -1alpha valid -1.1a valid -==Invalid Tests== -1.0.0-alpha2 invalid -1alpha.4 invalid -1.1alpha.4 invalid diff --git a/pear/tests/pear_config.phpt b/pear/tests/pear_config.phpt deleted file mode 100644 index 395986b9bd..0000000000 --- a/pear/tests/pear_config.phpt +++ /dev/null @@ -1,304 +0,0 @@ ---TEST-- -PEAR_Config ---SKIPIF-- - ---FILE-- -files); - -print "\n#2 testing: singleton\n"; -$o1 = &PEAR_Config::singleton(); -$o1->blah = 'blah'; -$o2 = &PEAR_Config::singleton(); -var_dump($o1->blah); -@var_dump($o2->blah); - -print "\n#3 testing: readConfigFile\n"; -$config->readConfigFile("user2.conf", "user"); -dump_config($config); -$config->readConfigFile("user.conf"); -dump_config($config); - -print "\n#4 testing: mergeConfigFile\n"; -$config->readConfigFile("user2.conf"); -dump_config($config, "user"); -$config->mergeConfigFile("merge.conf", true); -dump_config($config, "user"); -$config->readConfigFile("user2.conf"); -$config->mergeConfigFile("merge.conf", false); -dump_config($config, "user"); -$config->readConfigFile("user.conf"); -dump_config($config, "user"); -$config->mergeConfigFile("merge.conf", true, "xyzzy"); - -print "\n#5 testing: config file version detection\n"; -$config->readConfigFile("user.conf", "user"); -$config->readConfigFile("toonew.conf", "user"); - -print "\n#6 testing: get/set/remove\n"; -var_dump($config->get("verbose")); -$config->set("verbose", 100, "system"); -var_dump($config->get("verbose")); -$config->set("verbose", 2, "user"); -var_dump($config->get("verbose")); -$config->set("verbose", 2, "system"); -$config->set("verbose", 50, "user"); -var_dump($config->get("verbose")); -$config->remove("verbose", "user"); -var_dump($config->get("verbose")); -$config->remove("verbose", "system"); -var_dump($config->get("verbose")); - -print "\n#7 testing: getType\n"; -var_dump($config->getType("__unknown__")); -var_dump($config->getType("verbose")); -var_dump($config->getType("master_server")); -var_dump($config->getType("ext_dir")); - -print "\n#8 testing: getDocs\n"; -print "master_server: " . $config->getDocs("master_server") . "\n"; - -print "\n#9 testing: getKeys\n"; -$keys = $config->getKeys(); -sort($keys); -print implode(" ", $keys) . "\n"; - -print "\n#10 testing: definedBy\n"; -var_dump($config->definedBy("verbose")); -$config->set("verbose", 6, "system"); -$config->set("verbose", 3, "user"); -var_dump($config->definedBy("verbose")); -$config->remove("verbose", "system"); -var_dump($config->definedBy("verbose")); -$config->set("verbose", 6, "system"); -$config->remove("verbose", "user"); -var_dump($config->definedBy("verbose")); -$config->remove("verbose", "system"); -var_dump($config->definedBy("verbose")); - -print "\n#11 testing: isDefined\n"; -var_dump($config->isDefined("php_dir")); -var_dump($config->isDefined("verbose")); -var_dump($config->isDefined("HTTP_GET_VARS")); -var_dump($config->isDefined("query")); - -print "\n#12 testing: getGroup\n"; -foreach ($keys as $key) { - print "$key: ".$config->getGroup($key)."\n"; -} - -print "\n#13 testing: getGroups\n"; -$groups = $config->getGroups(); -sort($groups); -print implode(", ", $groups) . "\n"; - -print "\n#14 testing: getGroupKeys\n"; -foreach ($groups as $group) { - $gk = $config->getGroupKeys($group); - sort($gk); - print "$group: " . implode(", ", $gk) . "\n"; -} - -print "\n#15 testing: getPrompt\n"; -foreach ($keys as $key) { - print "$key: ".$config->getPrompt($key)."\n"; -} - - -// - -print "done\n"; - -unlink("user.conf"); -unlink("user2.conf"); -unlink("system.conf"); -unlink("merge.conf"); - -// ------------------------------------------------------------------------- // - -function dump_file($file) -{ - print "..$file:"; - $data = PEAR_Config::_readConfigDataFrom($file); - if (empty($data)) { - print " \n"; - return; - } - foreach ($data as $k => $v) { - print " $k=\"$v\""; - } - print "\n"; -} - -function dump_files() { - dump_file("system.conf"); - dump_file("user.conf"); -} - -function dump_array($name, $arr) { - print "$name:"; - if (empty($arr)) { - print " "; - } else { - foreach ($arr as $k => $v) { - print " $k=\"$v\""; - } - } - print "\n"; -} - -function dump_config(&$obj, $layer = null) { - if ($layer !== null) { - dump_array($layer, $obj->configuration[$layer]); - return; - } - foreach ($obj->configuration as $layer => $data) { - if ($layer == "default") { - continue; - } - dump_array($layer, $data); - } -} - -?> ---EXPECT-- -#0 starting up -..system.conf: master_server="pear.php.net" -..user.conf: - -#1 testing: constructor -files: system="system.conf" user="user.conf" - -#2 testing: singleton -string(4) "blah" -string(4) "blah" - -#3 testing: readConfigFile -user: verbose="2" -system: master_server="pear.php.net" -user: -system: master_server="pear.php.net" - -#4 testing: mergeConfigFile -user: verbose="2" -user: verbose="100" -user: verbose="2" -user: -unknown config file type `xyzzy' - -#5 testing: config file version detection -toonew.conf: unknown version `2.0' - -#6 testing: get/set/remove -int(1) -int(100) -int(2) -int(50) -int(2) -int(1) - -#7 testing: getType -bool(false) -string(7) "integer" -string(6) "string" -string(9) "directory" - -#8 testing: getDocs -master_server: name of the main PEAR server - -#9 testing: getKeys -bin_dir cache_dir cache_ttl data_dir doc_dir ext_dir http_proxy master_server password php_bin php_dir preferred_state sig_bin sig_keydir sig_keyid sig_type test_dir umask username verbose - -#10 testing: definedBy -string(7) "default" -string(4) "user" -string(4) "user" -string(6) "system" -string(7) "default" - -#11 testing: isDefined -bool(true) -bool(true) -bool(false) -bool(false) - -#12 testing: getGroup -bin_dir: File Locations -cache_dir: File Locations (Advanced) -cache_ttl: Advanced -data_dir: File Locations (Advanced) -doc_dir: File Locations -ext_dir: File Locations -http_proxy: Internet Access -master_server: Internet Access -password: Maintainers -php_bin: File Locations (Advanced) -php_dir: File Locations -preferred_state: Advanced -sig_bin: Maintainers -sig_keydir: Maintainers -sig_keyid: Maintainers -sig_type: Maintainers -test_dir: File Locations (Advanced) -umask: Advanced -username: Maintainers -verbose: Advanced - -#13 testing: getGroups -Advanced, File Locations, File Locations (Advanced), Internet Access, Maintainers - -#14 testing: getGroupKeys -Advanced: cache_ttl, preferred_state, umask, verbose -File Locations: bin_dir, doc_dir, ext_dir, php_dir -File Locations (Advanced): cache_dir, data_dir, php_bin, test_dir -Internet Access: http_proxy, master_server -Maintainers: password, sig_bin, sig_keydir, sig_keyid, sig_type, username - -#15 testing: getPrompt -bin_dir: PEAR executables directory -cache_dir: PEAR Installer cache directory -cache_ttl: Cache TimeToLive -data_dir: PEAR data directory -doc_dir: PEAR documentation directory -ext_dir: PHP extension directory -http_proxy: HTTP Proxy Server Address -master_server: PEAR server -password: PEAR password (for maintainers) -php_bin: PHP CLI/CGI binary -php_dir: PEAR directory -preferred_state: Preferred Package State -sig_bin: Signature Handling Program -sig_keydir: Signature Key Directory -sig_keyid: Signature Key Id -sig_type: Package Signature Type -test_dir: PEAR test directory -umask: Unix file mask -username: PEAR username (for maintainers) -verbose: Debug Log Level -done diff --git a/pear/tests/pear_config_1.1.phpt b/pear/tests/pear_config_1.1.phpt deleted file mode 100644 index 0ffb1b5e69..0000000000 --- a/pear/tests/pear_config_1.1.phpt +++ /dev/null @@ -1,394 +0,0 @@ ---TEST-- -PEAR_Config v1.1 ---SKIPIF-- - ---FILE-- -files); - -print "\n#2 testing: singleton\n"; -$o1 = &PEAR_Config::singleton(); -$o1->blah = 'blah'; -$o2 = &PEAR_Config::singleton(); -var_dump($o1->blah); -@var_dump($o2->blah); - -print "\n#3 testing: readConfigFile\n"; -$config->readConfigFile("user2.conf", "user"); -dump_config($config); -$config->readConfigFile("user.conf"); -dump_config($config); - -print "\n#4 testing: mergeConfigFile\n"; -$config->readConfigFile("user2.conf"); -dump_config($config, "user"); -$config->mergeConfigFile("merge.conf", true); -dump_config($config, "user"); -$config->readConfigFile("user2.conf"); -$config->mergeConfigFile("merge.conf", false); -dump_config($config, "user"); -$config->readConfigFile("user.conf"); -dump_config($config, "user"); -$config->mergeConfigFile("merge.conf", true, "xyzzy"); -$config->readConfigFile("user3.conf"); -dump_config($config, "user"); -$config->mergeConfigFile("merge2.conf", true); -dump_config($config, "user"); -$config->readConfigFile("user3.conf"); -$config->mergeConfigFile("merge2.conf", false); -dump_config($config, "user"); - -print "\n#5 testing: config file version detection\n"; -$config->readConfigFile("user.conf", "user"); -$config->readConfigFile("toonew.conf", "user"); - -print "\n#6 testing: get/set/remove\n"; -var_dump($config->get("verbose")); -$config->set("verbose", 100, "system"); -var_dump($config->get("verbose")); -$config->set("verbose", 2, "user"); -var_dump($config->get("verbose")); -$config->set("verbose", 2, "system"); -$config->set("verbose", 50, "user"); -var_dump($config->get("verbose")); -$config->remove("verbose", "user"); -var_dump($config->get("verbose")); -$config->remove("verbose", "system"); -var_dump($config->get("verbose")); - -print "\n#6.5 testing: get/set/remove w/channels\n"; -$config->readConfigFile('user3.conf'); -$config->setChannels(array('pear', 'test1', 'test2')); -var_dump($config->get('default_channel')); - -print "\n#7 testing: getType\n"; -var_dump($config->getType("__unknown__")); -var_dump($config->getType("verbose")); -var_dump($config->getType("master_server")); -var_dump($config->getType("ext_dir")); - -print "\n#8 testing: getDocs\n"; -print "master_server: " . $config->getDocs("master_server") . "\n"; - -print "\n#9 testing: getKeys\n"; -$keys = $config->getKeys(); -sort($keys); -print implode(" ", $keys) . "\n"; - -print "\n#10 testing: definedBy\n"; -$config->readConfigFile('user.conf'); -var_dump($config->definedBy("verbose")); -$config->set("verbose", 6, "system"); -$config->set("verbose", 3, "user"); -var_dump($config->definedBy("verbose")); -$config->remove("verbose", "system"); -var_dump($config->definedBy("verbose")); -$config->set("verbose", 6, "system"); -$config->remove("verbose", "user"); -var_dump($config->definedBy("verbose")); -$config->remove("verbose", "system"); -var_dump($config->definedBy("verbose")); - -print "\n#10.5 testing: definedBy with channel\n"; -$config->readConfigFile('user3.conf'); -var_dump($config->definedBy('verbose')); -$config->set('default_channel', 'test1'); -var_dump($config->definedBy('verbose')); -var_dump($config->definedBy('php_dir')); -var_dump($config->definedBy('gronk')); -$config->set('default_channel', 'pear'); -var_dump($config->definedBy('verbose', true)); -$config->set('default_channel', 'test1'); -var_dump($config->definedBy('verbose', true)); -var_dump($config->definedBy('php_dir', true)); -var_dump($config->definedBy('gronk', true)); - -print "\n#11 testing: isDefined\n"; -var_dump($config->isDefined("php_dir")); -var_dump($config->isDefined("verbose")); -var_dump($config->isDefined("HTTP_GET_VARS")); -var_dump($config->isDefined("query")); - -print "\n#12 testing: getGroup\n"; -foreach ($keys as $key) { - print "$key: ".$config->getGroup($key)."\n"; -} - -print "\n#13 testing: getGroups\n"; -$groups = $config->getGroups(); -sort($groups); -print implode(", ", $groups) . "\n"; - -print "\n#14 testing: getGroupKeys\n"; -foreach ($groups as $group) { - $gk = $config->getGroupKeys($group); - sort($gk); - print "$group: " . implode(", ", $gk) . "\n"; -} - -print "\n#15 testing: getPrompt\n"; -foreach ($keys as $key) { - print "$key: ".$config->getPrompt($key)."\n"; -} - - -// - -print "done\n"; - -unlink("user.conf"); -unlink("user2.conf"); -unlink("user3.conf"); -unlink("system.conf"); -unlink("merge.conf"); -unlink("merge2.conf"); - -// ------------------------------------------------------------------------- // - -function dump_file($file) -{ - print "..$file:"; - $data = PEAR_Config::_readConfigDataFrom($file); - if (empty($data)) { - print " \n"; - return; - } - foreach ($data as $k => $v) { - print " $k=\"$v\""; - } - print "\n"; -} - -function dump_files() { - dump_file("system.conf"); - dump_file("user.conf"); -} - -function dump_array($name, $arr) { - print "$name:"; - if (empty($arr)) { - print " "; - } else { - foreach ($arr as $k => $v) { - if (is_array($v)) { - print "\n "; - dump_array("${name}[$k]", $v); - continue; - } - print " $k=\"$v\""; - } - } - print "\n"; -} - -function dump_config(&$obj, $layer = null) { - if ($layer !== null) { - dump_array($layer, $obj->configuration[$layer]); - return; - } - foreach ($obj->configuration as $layer => $data) { - if ($layer == "default") { - continue; - } - dump_array($layer, $data); - } -} - -?> ---EXPECT-- -#0 starting up -..system.conf: master_server="pear.php.net" -..user.conf: - -#1 testing: constructor -files: system="system.conf" user="user.conf" - -#2 testing: singleton -string(4) "blah" -string(4) "blah" - -#3 testing: readConfigFile -user: verbose="2" -system: master_server="pear.php.net" -user: -system: master_server="pear.php.net" - -#4 testing: mergeConfigFile -user: verbose="2" -user: verbose="100" -user: verbose="2" -user: -unknown config file type `xyzzy' -user: verbose="60" - user[__channels]: - user[__channels][test1]: verbose="70" - - user[__channels][test2]: verbose="71" - - -user: - user[__channels]: - user[__channels][test1]: verbose="898" - - user[__channels][test2]: verbose="899" - - verbose="35" -user: - user[__channels]: - user[__channels][test1]: verbose="70" - - user[__channels][test2]: verbose="71" - - verbose="60" - -#5 testing: config file version detection -toonew.conf: unknown version `2.0' - -#6 testing: get/set/remove -int(1) -int(100) -int(2) -int(50) -int(2) -int(1) - -#6.5 testing: get/set/remove w/channels -string(4) "pear" - -#7 testing: getType -bool(false) -string(7) "integer" -string(6) "string" -string(9) "directory" - -#8 testing: getDocs -master_server: name of the main PEAR server - -#9 testing: getKeys -bin_dir cache_dir cache_ttl data_dir default_channel doc_dir ext_dir http_proxy master_server password php_bin php_dir preferred_state sig_bin sig_keydir sig_keyid sig_type test_dir umask username verbose - -#10 testing: definedBy -string(7) "default" -string(4) "user" -string(4) "user" -string(6) "system" -string(7) "default" - -#10.5 testing: definedBy with channel -string(4) "user" -string(4) "user" -string(7) "default" -string(0) "" -array(2) { - ["layer"]=> - string(4) "user" - ["channel"]=> - string(4) "pear" -} -array(2) { - ["layer"]=> - string(4) "user" - ["channel"]=> - string(5) "test1" -} -array(2) { - ["layer"]=> - string(7) "default" - ["channel"]=> - string(4) "pear" -} -string(0) "" - -#11 testing: isDefined -bool(true) -bool(true) -bool(false) -bool(false) - -#12 testing: getGroup -bin_dir: File Locations -cache_dir: File Locations (Advanced) -cache_ttl: Advanced -data_dir: File Locations (Advanced) -default_channel: Internet Access -doc_dir: File Locations -ext_dir: File Locations -http_proxy: Internet Access -master_server: Internet Access -password: Maintainers -php_bin: File Locations (Advanced) -php_dir: File Locations -preferred_state: Advanced -sig_bin: Maintainers -sig_keydir: Maintainers -sig_keyid: Maintainers -sig_type: Maintainers -test_dir: File Locations (Advanced) -umask: Advanced -username: Maintainers -verbose: Advanced - -#13 testing: getGroups -Advanced, File Locations, File Locations (Advanced), Internet Access, Maintainers - -#14 testing: getGroupKeys -Advanced: cache_ttl, preferred_state, umask, verbose -File Locations: bin_dir, doc_dir, ext_dir, php_dir -File Locations (Advanced): cache_dir, data_dir, php_bin, test_dir -Internet Access: default_channel, http_proxy, master_server -Maintainers: password, sig_bin, sig_keydir, sig_keyid, sig_type, username - -#15 testing: getPrompt -bin_dir: PEAR executables directory -cache_dir: PEAR Installer cache directory -cache_ttl: Cache TimeToLive -data_dir: PEAR data directory -default_channel: Default Channel -doc_dir: PEAR documentation directory -ext_dir: PHP extension directory -http_proxy: HTTP Proxy Server Address -master_server: PEAR server -password: PEAR password (for maintainers) -php_bin: PHP CLI/CGI binary -php_dir: PEAR directory -preferred_state: Preferred Package State -sig_bin: Signature Handling Program -sig_keydir: Signature Key Directory -sig_keyid: Signature Key Id -sig_type: Package Signature Type -test_dir: PEAR test directory -umask: Unix file mask -username: PEAR username (for maintainers) -verbose: Debug Log Level -done diff --git a/pear/tests/pear_dependency_checkExtension.phpt b/pear/tests/pear_dependency_checkExtension.phpt deleted file mode 100644 index 4992f17864..0000000000 --- a/pear/tests/pear_dependency_checkExtension.phpt +++ /dev/null @@ -1,265 +0,0 @@ ---TEST-- -PEAR_Dependency::checkExtension() test ---SKIPIF-- - ---FILE-- -statedir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp'; -$dep = new PEAR_Dependency($reg); - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $loaded, null, 'has'); -echo 'extension 1 ok? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $notloaded, null, 'not'); -echo 'extension 2 ok? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; - -$loadedver = phpversion($loaded); - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $loaded, $loadedver + 1, 'ge'); -echo 'extension 3 ok? '; -echo $ret ? "no\n" : "yes\n"; -echo 'message : ' . ($msg == "'$loaded' PHP extension version >= " . ($loadedver + 1) . - " is required" ? "match\n" : "$msg\n" ); - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $loaded, $loadedver + 1, 'ge', true); -echo 'extension 3 optional ok? '; -echo $ret ? "no\n" : "yes\n"; -echo 'message : ' . ($msg == "'$loaded' PHP extension version >= " . ($loadedver + 1) . - " is recommended to utilize some features" ? "match\n" : "$msg\n" ); - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $loaded, $loadedver, 'ne'); -echo 'extension 4 ok? '; -echo $ret ? "no\n" : "yes\n"; -echo 'message : ' . ($msg == "'$loaded' PHP extension version != " . $loadedver . - " is required" ? "match\n" : "$msg\n" ); - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $loaded, $loadedver, 'gt'); -echo 'extension 5 ok? '; -echo $ret ? "no\n" : "yes\n"; -echo 'message : ' . ($msg == "'$loaded' PHP extension version > " . $loadedver . - " is required" ? "match\n" : "$msg\n" ); - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $loaded, $loadedver, 'gt', true); -echo 'extension 5 optional ok? '; -echo $ret ? "no\n" : "yes\n"; -echo 'message : ' . ($msg == "'$loaded' PHP extension version > " . $loadedver . - " is recommended to utilize some features" ? "match\n" : "$msg\n" ); - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $loaded, $loadedver, 'lt'); -echo 'extension 6 ok? '; -echo $ret ? "no\n" : "yes\n"; -echo 'message : ' . ($msg == "'$loaded' PHP extension version < " . $loadedver . - " is required" ? "match\n" : "$msg\n" ); - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $loaded, $loadedver, 'lt', true); -echo 'extension 6 optional ok? '; -echo $ret ? "no\n" : "yes\n"; -echo 'message : ' . ($msg == "'$loaded' PHP extension version < " . $loadedver . - " is recommended to utilize some features" ? "match\n" : "$msg\n" ); - -if ($loadedver == 0) { - echo "extension 7 ok? no\nmessage : match\n"; - echo "extension 7 optional ok? no\nmessage : match\n"; -} else { - $msg = 'no error'; - $ret = $dep->checkExtension($msg, $loaded, $loadedver - 1, 'le'); - echo 'extension 7 ok? '; - echo $ret ? "no\n" : "yes\n"; - echo 'message : ' . ($msg == "'$loaded' PHP extension version <= " . ($loadedver - 1). - " is required" ? "match\n" : "$msg\n"); - - $msg = 'no error'; - $ret = $dep->checkExtension($msg, $loaded, $loadedver - 1, 'le', true); - echo 'extension 7 ok? '; - echo $ret ? "no\n" : "yes\n"; - echo 'message : ' . ($msg == "'$loaded' PHP extension version <= " . ($loadedver - 1). - " is recommended to utilize some features" ? "match\n" : "$msg\n"); -} - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $loaded, $loadedver, 'eq'); -echo 'extension 8 ok? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $notloaded, $loadedver, 'ne'); -echo 'extension 9 ok? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $loaded, $loadedver + 1, 'eq'); -echo 'extension 10 ok? '; -echo $ret ? "no\n" : "yes\n"; -echo 'message : ' . ($msg == "'$loaded' PHP extension version == " . ($loadedver + 1). - " is required" ? "match\n" : "$msg\n"); - -$msg = 'no error'; -$ret = $dep->checkExtension($msg, $loaded, $loadedver + 1, 'eq', true); -echo 'extension 10 optional ok? '; -echo $ret ? "no\n" : "yes\n"; -echo 'message : ' . ($msg == "'$loaded' PHP extension version == " . ($loadedver + 1). - " is recommended to utilize some features" ? "match\n" : "$msg\n"); - -cleanall(); -// ------------------------------------------------------------------------- // - -function cleanall() -{ - $dp = opendir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp'); - while ($ent = readdir($dp)) { - if (substr($ent, -4) == ".reg") { - unlink(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp' . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp'); -} - -?> ---EXPECT-- -extension 1 ok? yes -no error -extension 2 ok? yes -no error -extension 3 ok? no -message : match -extension 3 optional ok? no -message : match -extension 4 ok? no -message : match -extension 5 ok? no -message : match -extension 5 optional ok? no -message : match -extension 6 ok? no -message : match -extension 6 optional ok? no -message : match -extension 7 ok? no -message : match -extension 7 optional ok? no -message : match -extension 8 ok? yes -no error -extension 9 ok? yes -no error -extension 10 ok? no -message : match -extension 10 optional ok? no -message : match diff --git a/pear/tests/pear_dependency_checkPackage.phpt b/pear/tests/pear_dependency_checkPackage.phpt deleted file mode 100644 index 90dfb556f6..0000000000 --- a/pear/tests/pear_dependency_checkPackage.phpt +++ /dev/null @@ -1,267 +0,0 @@ ---TEST-- -PEAR_Dependency::checkPackage() test ---SKIPIF-- - ---FILE-- -statedir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp'; - -$files1 = array( - "pkg1-1.php" => array( - "role" => "php", - ), - "pkg1-2.php" => array( - "role" => "php", - "baseinstalldir" => "pkg1", - ), - ); -$reg->addPackage("pkg1", array("name" => "pkg1", "version" => "1.0", "filelist" => $files1)); - -$dep = new PEAR_Dependency($reg); -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1'); -echo 'has works? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '1.0', 'eq'); -echo 'eq 1.0 works? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '1.0', 'le'); -echo 'le 1.0 works? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '1.1', 'lt'); -echo 'lt 1.1 works? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '1.1', 'ne'); -echo 'ne 1.1 works? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '1.0', 'ge'); -echo 'ge 1.0 works? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '0.9', 'gt'); -echo 'ge 0.9 works? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg2', null, 'not'); -echo 'not pkg2 works? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; - -// error conditions - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg2', null, 'has'); -echo 'has pkg2 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_MISSING? '; -echo ($ret == PEAR_DEPENDENCY_MISSING) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg2', null, 'has', true); -echo 'has optional pkg2 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_MISSING_OPTIONAL? '; -echo ($ret == PEAR_DEPENDENCY_MISSING_OPTIONAL) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '0.9', 'le'); -echo 'le 0.9 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_CONFLICT? '; -echo ($ret == PEAR_DEPENDENCY_CONFLICT) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '0.9', 'le', true); -echo 'optional le 0.9 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_CONFLICT_OPTIONAL? '; -echo ($ret == PEAR_DEPENDENCY_CONFLICT_OPTIONAL) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '1.0', 'ne'); -echo 'ne 1.0 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_CONFLICT? '; -echo ($ret == PEAR_DEPENDENCY_CONFLICT) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '1.0', 'ne', true); -echo 'optional ne 1.0 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_CONFLICT_OPTIONAL? '; -echo ($ret == PEAR_DEPENDENCY_CONFLICT_OPTIONAL) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '1.1', 'ge'); -echo 'ge 1.1 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_UPGRADE_MINOR? '; -echo ($ret == PEAR_DEPENDENCY_UPGRADE_MINOR) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '1.1', 'ge', true); -echo 'optional ge 1.1 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_UPGRADE_MINOR_OPTIONAL? '; -echo ($ret == PEAR_DEPENDENCY_UPGRADE_MINOR_OPTIONAL) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '2.0', 'ge'); -echo 'ge 2.0 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_UPGRADE_MAJOR? '; -echo ($ret == PEAR_DEPENDENCY_UPGRADE_MAJOR) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '2.0', 'ge', true); -echo 'optional ge 2.0 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_UPGRADE_MAJOR_OPTIONAL? '; -echo ($ret == PEAR_DEPENDENCY_UPGRADE_MAJOR_OPTIONAL) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '1.0', 'gt'); -echo 'gt 1.0 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_UPGRADE_MINOR? '; -echo ($ret == PEAR_DEPENDENCY_UPGRADE_MINOR) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', '1.0', 'gt', true); -echo 'optional gt 1.0 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_UPGRADE_MINOR_OPTIONAL? '; -echo ($ret == PEAR_DEPENDENCY_UPGRADE_MINOR_OPTIONAL) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', null, 'not'); -echo 'not pkg1 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_CONFLICT? '; -echo ($ret == PEAR_DEPENDENCY_CONFLICT) ? "yes\n" : "no\n"; -echo $msg . "\n"; - -$msg = 'no error'; -$ret = $dep->checkPackage($msg, 'pkg1', null, 'foobar'); -echo 'foobar pkg1 works? '; -echo $ret ? "no\n" : "yes\n"; -echo '$ret is PEAR_DEPENDENCY_BAD_DEPENDENCY? '; -echo ($ret == PEAR_DEPENDENCY_BAD_DEPENDENCY) ? "yes\n" : "no\n"; -echo $msg . "\n"; -cleanall(); - -// ------------------------------------------------------------------------- // - -function cleanall() -{ - $dp = opendir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp'); - while ($ent = readdir($dp)) { - if (substr($ent, -4) == ".reg") { - unlink(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp' . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp'); -} - -?> ---EXPECT-- -has works? yes -no error -eq 1.0 works? yes -no error -le 1.0 works? yes -no error -lt 1.1 works? yes -no error -ne 1.1 works? yes -no error -ge 1.0 works? yes -no error -ge 0.9 works? yes -no error -not pkg2 works? yes -no error -has pkg2 works? no -$ret is PEAR_DEPENDENCY_MISSING? yes -requires package `pear::pkg2' -has optional pkg2 works? no -$ret is PEAR_DEPENDENCY_MISSING_OPTIONAL? yes -package `pear::pkg2' is recommended to utilize some features. -le 0.9 works? no -$ret is PEAR_DEPENDENCY_CONFLICT? yes -requires package `pear::pkg1' <= 0.9 -optional le 0.9 works? no -$ret is PEAR_DEPENDENCY_CONFLICT_OPTIONAL? yes -package `pear::pkg1' version <= 0.9 is recommended to utilize some features. Installed version is 1.0 -ne 1.0 works? no -$ret is PEAR_DEPENDENCY_CONFLICT? yes -requires package `pear::pkg1' != 1.0 -optional ne 1.0 works? no -$ret is PEAR_DEPENDENCY_CONFLICT_OPTIONAL? yes -package `pear::pkg1' version != 1.0 is recommended to utilize some features. Installed version is 1.0 -ge 1.1 works? no -$ret is PEAR_DEPENDENCY_UPGRADE_MINOR? yes -requires package `pear::pkg1' >= 1.1 -optional ge 1.1 works? no -$ret is PEAR_DEPENDENCY_UPGRADE_MINOR_OPTIONAL? yes -package `pear::pkg1' version >= 1.1 is recommended to utilize some features. Installed version is 1.0 -ge 2.0 works? no -$ret is PEAR_DEPENDENCY_UPGRADE_MAJOR? yes -requires package `pear::pkg1' >= 2.0 -optional ge 2.0 works? no -$ret is PEAR_DEPENDENCY_UPGRADE_MAJOR_OPTIONAL? yes -package `pear::pkg1' version >= 2.0 is recommended to utilize some features. Installed version is 1.0 -gt 1.0 works? no -$ret is PEAR_DEPENDENCY_UPGRADE_MINOR? yes -requires package `pear::pkg1' > 1.0 -optional gt 1.0 works? no -$ret is PEAR_DEPENDENCY_UPGRADE_MINOR_OPTIONAL? yes -package `pear::pkg1' version > 1.0 is recommended to utilize some features. Installed version is 1.0 -not pkg1 works? no -$ret is PEAR_DEPENDENCY_CONFLICT? yes -conflicts with package `pear::pkg1' -foobar pkg1 works? no -$ret is PEAR_DEPENDENCY_BAD_DEPENDENCY? yes -relation 'foobar' with requirement '' is not supported (name=pear::pkg1) diff --git a/pear/tests/pear_dependency_checkPackageUninstall.phpt b/pear/tests/pear_dependency_checkPackageUninstall.phpt deleted file mode 100644 index b93a2ea1db..0000000000 --- a/pear/tests/pear_dependency_checkPackageUninstall.phpt +++ /dev/null @@ -1,176 +0,0 @@ ---TEST-- -PEAR_Dependency::checkPackageUninstall() test ---SKIPIF-- - ---FILE-- -statedir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp'; - -$files1 = array( - "pkg1-1.php" => array( - "role" => "php", - ), - "pkg1-2.php" => array( - "role" => "php", - "baseinstalldir" => "pkg1", - ), - ); -$files2 = array( - "pkg2-1.php" => array( - "role" => "php", - ), - "pkg2-2.php" => array( - "role" => "php", - "baseinstalldir" => "pkg2", - ), - ); -$files3 = array( - "pkg3-1.php" => array( - "role" => "php", - ), - "pkg3-2.php" => array( - "role" => "php", - "baseinstalldir" => "pkg3", - ), - ); - -$reg->addPackage("pkg2", array("name" => "pkg2", "version" => "2.0", "filelist" => $files2)); -$reg->addPackage("pkg3", array("name" => "pkg3", "version" => "3.0", "filelist" => $files3)); - -$reg->addPackage("pkg1", array("name" => "pkg1", "version" => "1.0", "filelist" => $files1, - 'release_deps' => array( - array('type' => 'pkg', 'name' => 'pkg3', 'rel' => 'not') - ))); - -$dep = new PEAR_Dependency($reg); -$msg = ''; -$warn = ''; -$ret = $dep->checkPackageUninstall($msg, $warn, 'pkg1'); -echo 'uninstall ok? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; -echo $warn . "\n"; - -cleanall(); - -$reg->addPackage("pkg2", array("name" => "pkg2", "version" => "2.0", "filelist" => $files2)); -$reg->addPackage("pkg3", array("name" => "pkg3", "version" => "3.0", "filelist" => $files3)); - -$reg->addPackage("pkg1", array("name" => "pkg1", "version" => "1.0", "filelist" => $files1, - 'release_deps' => array( - array('type' => 'pkg', 'name' => 'pkg2', 'rel' => 'ne', 'version' => '6.0') - ))); - -$dep = new PEAR_Dependency($reg); -$msg = ''; -$warn = ''; -$ret = $dep->checkPackageUninstall($msg, $warn, 'pkg2'); -echo 'uninstall ok? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; -echo $warn . "\n"; - -cleanall(); - -$reg->addPackage("pkg2", array("name" => "pkg2", "version" => "2.0", "filelist" => $files2)); -$reg->addPackage("pkg3", array("name" => "pkg3", "version" => "3.0", "filelist" => $files3)); - -$reg->addPackage("pkg1", array("name" => "pkg1", "version" => "1.0", "filelist" => $files1, - 'release_deps' => array( - array('type' => 'pkg', 'name' => 'pkg2', 'rel' => 'has') - ))); - -$dep = new PEAR_Dependency($reg); -$msg = ''; -$warn = ''; -$ret = $dep->checkPackageUninstall($msg, $warn, 'pkg2'); -echo 'uninstall ok? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; -echo $warn . "\n"; - -cleanall(); - -$reg->addPackage("pkg2", array("name" => "pkg2", "version" => "2.0", "filelist" => $files2)); -$reg->addPackage("pkg3", array("name" => "pkg3", "version" => "3.0", "filelist" => $files3)); - -$reg->addPackage("pkg1", array("name" => "pkg1", "version" => "1.0", "filelist" => $files1, - 'release_deps' => array( - array('type' => 'pkg', 'name' => 'pkg2', 'rel' => 'has', 'optional' => 'no') - ))); - -$dep = new PEAR_Dependency($reg); -$msg = ''; -$warn = ''; -$ret = $dep->checkPackageUninstall($msg, $warn, 'pkg2'); -echo 'uninstall ok? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; -echo $warn . "\n"; - -cleanall(); - -$reg->addPackage("pkg2", array("name" => "pkg2", "version" => "2.0", "filelist" => $files2)); -$reg->addPackage("pkg3", array("name" => "pkg3", "version" => "3.0", "filelist" => $files3)); - -$reg->addPackage("pkg1", array("name" => "pkg1", "version" => "1.0", "filelist" => $files1, - 'release_deps' => array( - array('type' => 'pkg', 'name' => 'pkg2', 'rel' => 'has', 'optional' => 'yes') - ))); - -$dep = new PEAR_Dependency($reg); -$msg = ''; -$warn = ''; -$ret = $dep->checkPackageUninstall($msg, $warn, 'pkg2'); -echo 'uninstall ok? '; -echo $ret ? "no\n" : "yes\n"; -echo $msg . "\n"; -echo $warn . "\n"; - -cleanall(); - -// ------------------------------------------------------------------------- // - -function cleanall() -{ - $dp = opendir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp'); - while ($ent = readdir($dp)) { - if (substr($ent, -4) == ".reg") { - unlink(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp' . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp'); -} - -?> ---EXPECT-- -uninstall ok? yes - - -uninstall ok? yes - - -uninstall ok? no -Package 'pear::pkg1' depends on 'pear::pkg2' - - -uninstall ok? no -Package 'pear::pkg1' depends on 'pear::pkg2' - - -uninstall ok? yes - - -Warning: Package 'pear::pkg1' optionally depends on 'pear::pkg2' \ No newline at end of file diff --git a/pear/tests/pear_downloader_invalid.phpt b/pear/tests/pear_downloader_invalid.phpt deleted file mode 100644 index 7c10dcd80b..0000000000 --- a/pear/tests/pear_downloader_invalid.phpt +++ /dev/null @@ -1,379 +0,0 @@ ---TEST-- -PEAR_Downloader::download() invalid values test ---SKIPIF-- - ---FILE-- - $server, - 'preferred_state' => 'stable', - 'cache_dir' => $temp_path . DIRECTORY_SEPARATOR . 'cache', - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', - 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', - 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', - 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', - 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test', - 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',)); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w'); -fwrite($fp, $config); -fclose($fp); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.ini', 'w'); -fwrite($fp, $config); -fclose($fp); - -putenv('PHP_PEAR_SYSCONF_DIR='.$temp_path); -$home = getenv('HOME'); -if (!empty($home)) { - // for PEAR_Config initialization - putenv('HOME="'.$temp_path); -} -require_once "PEAR/Downloader.php"; -require_once 'PEAR/Installer.php'; -require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'download_test_classes.php.inc'; - -// no UI is needed for these tests -$ui = false; -$curdir = getcwd(); -chdir(dirname(__FILE__)); - -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'catchit'); -$error_to_catch = false; -function catchit($err) -{ - global $error_to_catch; - if ($error_to_catch) { - if ($err->getMessage() == $error_to_catch) { - $error_to_catch = false; - echo "Caught expected error\n"; - return; - } - } - echo "Caught error: " . $err->getMessage() . "\n"; -} - -$config = &PEAR_Config::singleton(); -// initialize fake pear channel -require_once 'PEAR/ChannelFile.php'; -$chan = new PEAR_ChannelFile; -$chan->setName('pear'); -$chan->setSummary('PEAR'); -$chan->setServer($server); -$chan->setDefaultPEARProtocols(); -$reg = new PEAR_Registry($config->get('php_dir'), $chan); -$options = array(); -$installer = &new test_PEAR_Downloader($ui, $options, $config); - -echo "-=-=-=-=-=-=-=-=- Failure Tests -=-=-=-=-=-=-=-=-=-=-\n"; - -echo "Test invalid package name:\n"; -$packages = array("/invalid+packagename"); -$a = $installer->doDownload($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs(), $installpackages); - -echo "Test download of a package with no releases:\n"; -$packages = array("noreleases"); -$a = $installer->doDownload($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs(), $installpackages); - -echo "Test download of a non-existing package version:\n"; -$packages = array("pkg1-1976.9.2"); -$a = $installer->doDownload($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs(), $installpackages); - -echo "Test download of a non-existing package release state:\n"; -$packages = array("pkg1-snapshot"); -$a = $installer->doDownload($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs(), $installpackages); - -echo "Test download of invalid release state:\n"; -$packages = array("pkg1-burgerking"); -$a = $installer->doDownload($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs(), $installpackages); - -$installer->configSet('preferred_state', 'stable'); - -echo "Test automatic version resolution (stable):\n"; -$packages = array("stabilitytoolow"); -$a = $installer->doDownload($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs(), $installpackages); - -echo "Test automatic version resolution (stable) with --force:\n"; -$packages = array("stabilitytoolow"); -$installer->setOptions(array('force' => true)); -$a = $installer->doDownload($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs(), $installpackages[0]['info']['version']); - -$installer->configSet('preferred_state', 'beta'); -$installer->setOptions(array()); - -echo "Test automatic version resolution (beta):\n"; -$packages = array("stabilitytoolow"); -$a = $installer->doDownload($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs(), $installpackages[0]['info']['version']); - -$installer->configSet('preferred_state', 'alpha'); - -echo "Test automatic version resolution (alpha):\n"; -$packages = array("stabilitytoolow"); -$a = $installer->doDownload($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs(), $installpackages[0]['info']['version']); - -$installer->configSet('preferred_state', 'devel'); - -echo "Test automatic version resolution (devel):\n"; -$packages = array("stabilitytoolow"); -$a = $installer->doDownload($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs(), $installpackages[0]['info']['version']); - -echo "Test download attempt if a version is already installed:\n"; - -$forinstall = &new PEAR_Installer($ui); -$forinstall->setOptions(array()); -$installer->setOptions(array()); - -$installer->doDownload(array('pkg6')); -$pkgs = $installer->getDownloadedPackages(); -$forinstall->install($pkgs[0]['file']); -$installer->doDownload(array('pkg6')); -var_dump(get_class($a), $installer->getErrorMsgs()); - -echo "Test download attempt if a version is already installed with --force:\n"; - -$installer->setOptions(array('force' => true)); - -$installer->doDownload(array('pkg6')); -$pkgs = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs(), $pkgs[0]['info']['version']); - -echo "Test download attempt if a version is already installed with upgrade, same version:\n"; - -$installer->setOptions(array('upgrade' => true)); - -$installer->doDownload(array('pkg6')); -$pkgs = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs()); - -echo "Test download attempt if a version is already installed with upgrade, lesser version:\n"; - -$installer->setOptions(array('upgrade' => true)); - -$installer->doDownload(array('pkg6-1.1')); -$pkgs = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs()); - -echo "Test download attempt with --alldeps, but dependency has no releases:\n"; - -$installer->setOptions(array('alldeps' => true)); - -$installer->doDownload(array('depnoreleases')); -$pkgs = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs()); - -echo "Test download attempt with --onlyreqdeps, but dependency has no releases:\n"; - -$installer->setOptions(array('onlyreqdeps' => true)); - -$installer->doDownload(array('depnoreleases')); -$pkgs = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs()); - -$installer->configSet('preferred_state', 'stable'); -echo "Test download attempt with --alldeps, but dependency is too unstable:\n"; -$installer->setOptions(array('alldeps' => true)); - -$installer->doDownload(array('depunstable')); -$pkgs = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs()); - -echo "Test download attempt with --onlyreqdeps, but dependency is too unstable:\n"; - -$installer->setOptions(array('onlyreqdeps' => true)); - -$installer->doDownload(array('depunstable')); -$pkgs = $installer->getDownloadedPackages(); -var_dump(get_class($a), $installer->getErrorMsgs()); - -chdir($curdir); -cleanall($temp_path); - -//echo implode("\n", array_values($GLOBALS['totalPHP'])); - - -// ------------------------------------------------------------------------- // - -function cleanall($dir) -{ - $dp = opendir($dir); - while ($ent = readdir($dp)) { - if ($ent == '.' || $ent == '..') { - continue; - } - if (is_dir($dir . DIRECTORY_SEPARATOR . $ent)) { - cleanall($dir . DIRECTORY_SEPARATOR . $ent); - } else { - unlink($dir . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir($dir); -} -?> ---EXPECT-- --=-=-=-=-=-=-=-=- Failure Tests -=-=-=-=-=-=-=-=-=-=- -Test invalid package name: -Caught error: Package name '/invalid+packagename' not valid for channel 'pear' -string(10) "pear_error" -array(0) { -} -array(0) { -} -Test download of a package with no releases: -Caught error: No releases found for package 'pear::noreleases' -string(10) "pear_error" -array(0) { -} -array(0) { -} -Test download of a non-existing package version: -Caught error: No release of 'pear::pkg1' with version '1976.9.2' found, latest release is version '2.0b1', stability 'beta', use --force to install -string(10) "pear_error" -array(0) { -} -array(0) { -} -Test download of a non-existing package release state: -Caught error: No release of 'pear::pkg1' with state 'snapshot' found, latest release is version '2.0b1', stability 'beta', use --force to install -string(10) "pear_error" -array(0) { -} -array(0) { -} -Test download of invalid release state: -Caught error: Invalid suffix '-burgerking', be sure to pass a valid PEAR version number or release state -string(10) "pear_error" -array(0) { -} -array(0) { -} -Test automatic version resolution (stable): -Caught error: No release of 'pear::stabilitytoolow' within preferred_state of 'stable' found, latest release is version '3.0dev', stability 'devel', use --force to install -string(10) "pear_error" -array(0) { -} -array(0) { -} -Test automatic version resolution (stable) with --force: -Warning: No release of 'pear::stabilitytoolow' within preferred_state of 'stable' found, latest release, version '3.0dev', stability 'devel' will be downloaded -bool(false) -array(0) { -} -string(6) "3.0dev" -Test automatic version resolution (beta): -bool(false) -array(0) { -} -string(5) "1.0b1" -Test automatic version resolution (alpha): -bool(false) -array(0) { -} -string(5) "2.0a1" -Test automatic version resolution (devel): -bool(false) -array(0) { -} -string(6) "3.0dev" -Test download attempt if a version is already installed: -Package 'pear::pkg6' already installed, skipping -bool(false) -array(0) { -} -Test download attempt if a version is already installed with --force: -bool(false) -array(0) { -} -string(5) "2.0b1" -Test download attempt if a version is already installed with upgrade, same version: -Package 'pear::pkg6', version '2.0b1' already installed, skipping -bool(false) -array(0) { -} -Test download attempt if a version is already installed with upgrade, lesser version: -Package 'pear::pkg6' version '2.0b1' is installed and 2.0b1 is > requested '1.1', skipping -bool(false) -array(0) { -} -Test download attempt with --alldeps, but dependency has no releases: -bool(false) -array(1) { - [0]=> - string(75) "Package 'pear::depnoreleases' dependency 'pear::noreleases' has no releases" -} -Test download attempt with --onlyreqdeps, but dependency has no releases: -bool(false) -array(1) { - [0]=> - string(75) "Package 'pear::depnoreleases' dependency 'pear::noreleases' has no releases" -} -Test download attempt with --alldeps, but dependency is too unstable: -bool(false) -array(1) { - [0]=> - string(103) "Release for 'pear::depunstable' dependency 'pear::stabilitytoolow' has state 'devel', requires 'stable'" -} -Test download attempt with --onlyreqdeps, but dependency is too unstable: -bool(false) -array(1) { - [0]=> - string(103) "Release for 'pear::depunstable' dependency 'pear::stabilitytoolow' has state 'devel', requires 'stable'" -} \ No newline at end of file diff --git a/pear/tests/pear_downloader_new.phpt b/pear/tests/pear_downloader_new.phpt deleted file mode 100644 index bcbbf026a5..0000000000 --- a/pear/tests/pear_downloader_new.phpt +++ /dev/null @@ -1,578 +0,0 @@ ---TEST-- -PEAR_Downloader::download() test ---SKIPIF-- - ---FILE-- - $server, - 'preferred_state' => 'stable', - 'cache_dir' => $temp_path . DIRECTORY_SEPARATOR . 'cache', - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', - 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', - 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', - 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', - 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test', - 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',)); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w'); -fwrite($fp, $config); -fclose($fp); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.ini', 'w'); -fwrite($fp, $config); -fclose($fp); - -putenv('PHP_PEAR_SYSCONF_DIR='.$temp_path); -$home = getenv('HOME'); -if (!empty($home)) { - // for PEAR_Config initialization - putenv('HOME="'.$temp_path); -} -require_once "PEAR/Downloader.php"; -require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'download_test_classes.php.inc'; - -// no UI is needed for these tests -$ui = false; -$curdir = getcwd(); -chdir(dirname(__FILE__)); - -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'catchit'); -$error_to_catch = false; -function catchit($err) -{ - global $error_to_catch; - if ($error_to_catch) { - if ($err->getMessage() == $error_to_catch) { - $error_to_catch = false; - echo "Caught expected error\n"; - return; - } - } - echo "Caught error: " . $err->getMessage() . "\n"; -} - -echo "Test simple direct url download:\n"; - -$config = &PEAR_Config::singleton(); -// initialize fake pear channel -require_once 'PEAR/ChannelFile.php'; -$chan = new PEAR_ChannelFile; -$chan->setName('pear'); -$chan->setSummary('PEAR'); -$chan->setServer($server); -$chan->setDefaultPEARProtocols(); - -$reg = new PEAR_Registry($config->get('php_dir'), $chan); -$packages = array("http://$server/get/pkg6-1.1.tgz"); -$options = array(); -$installer = &new test_PEAR_Downloader($ui, $options, $config); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); - -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-1.1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); -unset($installpackages[0]['file']); -var_dump($installpackages); - -echo "Test simple package name download:\n"; -$installpackages = $errors = array(); -$packages = array('pkg6'); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); - -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-1.1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); -unset($installpackages[0]['file']); -var_dump($installpackages); - -echo "Test package name with version download:\n"; -$installpackages = $errors = array(); -$packages = array('pkg6-1.1'); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); - -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-1.1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); - -echo "Test package name with state stable download:\n"; -$installpackages = $errors = array(); -$packages = array('pkg6-stable'); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); - -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-1.1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); - -echo "Test package name with state beta download:\n"; -$installpackages = $errors = array(); -$packages = array('pkg6-beta'); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); - -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-2.0b1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); - -echo "================\nTest preferred_state = beta\n"; -$installer->configSet('preferred_state', 'beta'); - -echo "Test simple package name download:\n"; -$installpackages = $errors = array(); -$packages = array('pkg6'); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); - -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-2.0b1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); -unset($installpackages[0]['file']); - -echo "\n================Test --alldeps\nTest preferred_state = stable\n"; -$installer->configSet('preferred_state', 'stable'); - -$installer = &new test_PEAR_Downloader($ui, array('alldeps' => true), $config); -$packages = array("http://$server/get/pkg1-1.1.tgz"); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} -$packages = array("pkg1"); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} - -echo "Test preferred_state = beta:\n"; -$installer->configSet('preferred_state', 'beta'); - -$packages = array("pkg1"); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} - -echo "Test preferred_state = alpha:\n"; -$installer->configSet('preferred_state', 'alpha'); - -$packages = array("pkg1"); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} -echo "\n================Test --onlyreqdeps\nTest preferred_state = stable\n"; -$config->set('preferred_state', 'stable'); - -$installer = &new test_PEAR_Downloader($ui, array('onlyreqdeps' => true), $config); -$packages = array("http://$server/get/pkg1-1.1.tgz"); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} -$packages = array("pkg1"); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} - -echo "Test preferred_state = beta:\n"; -$installer->configSet('preferred_state', 'beta'); - -$packages = array("pkg1"); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} - -echo "Test preferred_state = alpha:\n"; -$installer->configSet('preferred_state', 'alpha'); - -$packages = array("pkg1"); -$a = $installer->download($packages); -$installpackages = $installer->getDownloadedPackages(); -var_dump($a, $installer->getErrorMsgs()); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} - - -chdir($curdir); -cleanall($temp_path); -// ------------------------------------------------------------------------- // - -function cleanall($dir) -{ - $dp = opendir($dir); - while ($ent = readdir($dp)) { - if ($ent == '.' || $ent == '..') { - continue; - } - if (is_dir($dir . DIRECTORY_SEPARATOR . $ent)) { - cleanall($dir . DIRECTORY_SEPARATOR . $ent); - } else { - unlink($dir . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir($dir); -} -?> ---EXPECT-- -Test simple direct url download: -NULL -array(0) { -} -File exists? yes -File is the same? yes -array(1) { - [0]=> - array(2) { - ["pkg"]=> - string(4) "pkg6" - ["info"]=> - array(11) { - ["provides"]=> - array(0) { - } - ["filelist"]=> - array(3) { - ["zoorb.php"]=> - array(2) { - ["role"]=> - string(3) "php" - ["baseinstalldir"]=> - string(5) "groob" - } - ["goompness\oggbrzitzkee.php"]=> - array(2) { - ["role"]=> - string(3) "php" - ["baseinstalldir"]=> - string(5) "groob" - } - ["goompness\Mopreeb.php"]=> - array(2) { - ["role"]=> - string(3) "php" - ["baseinstalldir"]=> - string(5) "groob" - } - } - ["package"]=> - string(4) "pkg6" - ["summary"]=> - string(32) "required test for PEAR_Installer" - ["description"]=> - string(12) "fake package" - ["maintainers"]=> - array(1) { - [0]=> - array(4) { - ["handle"]=> - string(8) "fakeuser" - ["name"]=> - string(9) "Joe Shmoe" - ["email"]=> - string(18) "nobody@example.com" - ["role"]=> - string(4) "lead" - } - } - ["version"]=> - string(3) "1.1" - ["release_date"]=> - string(10) "2003-09-09" - ["release_license"]=> - string(11) "PHP License" - ["release_state"]=> - string(6) "stable" - ["release_notes"]=> - string(24) "required dependency test" - } - } -} -Test simple package name download: -NULL -array(0) { -} -File exists? yes -File is the same? yes -array(1) { - [0]=> - array(2) { - ["pkg"]=> - string(4) "pkg6" - ["info"]=> - array(11) { - ["provides"]=> - array(0) { - } - ["filelist"]=> - array(3) { - ["zoorb.php"]=> - array(2) { - ["role"]=> - string(3) "php" - ["baseinstalldir"]=> - string(5) "groob" - } - ["goompness\oggbrzitzkee.php"]=> - array(2) { - ["role"]=> - string(3) "php" - ["baseinstalldir"]=> - string(5) "groob" - } - ["goompness\Mopreeb.php"]=> - array(2) { - ["role"]=> - string(3) "php" - ["baseinstalldir"]=> - string(5) "groob" - } - } - ["package"]=> - string(4) "pkg6" - ["summary"]=> - string(32) "required test for PEAR_Installer" - ["description"]=> - string(12) "fake package" - ["maintainers"]=> - array(1) { - [0]=> - array(4) { - ["handle"]=> - string(8) "fakeuser" - ["name"]=> - string(9) "Joe Shmoe" - ["email"]=> - string(18) "nobody@example.com" - ["role"]=> - string(4) "lead" - } - } - ["version"]=> - string(3) "1.1" - ["release_date"]=> - string(10) "2003-09-09" - ["release_license"]=> - string(11) "PHP License" - ["release_state"]=> - string(6) "stable" - ["release_notes"]=> - string(24) "required dependency test" - } - } -} -Test package name with version download: -NULL -array(0) { -} -File exists? yes -File is the same? yes -Test package name with state stable download: -NULL -array(0) { -} -File exists? yes -File is the same? yes -Test package name with state beta download: -NULL -array(0) { -} -File exists? yes -File is the same? yes -================ -Test preferred_state = beta -Test simple package name download: -NULL -array(0) { -} -File exists? yes -File is the same? yes - -================Test --alldeps -Test preferred_state = stable -NULL -array(0) { -} -Packages downloaded and version: -pkg1-1.1 -pkg2-1.1 -pkg3-1.1 -pkg4-1.1 -pkg5-1.1 -pkg6-1.1 -NULL -array(0) { -} -Packages downloaded and version: -pkg1-1.1 -pkg2-1.1 -pkg3-1.1 -pkg4-1.1 -pkg5-1.1 -pkg6-1.1 -Test preferred_state = beta: -NULL -array(0) { -} -Packages downloaded and version: -pkg1-2.0b1 -pkg2-1.1 -pkg3-1.1 -pkg4-1.1 -pkg5-1.1 -pkg6-2.0b1 -Test preferred_state = alpha: -NULL -array(0) { -} -Packages downloaded and version: -pkg1-2.0b1 -pkg2-1.1 -pkg3-1.4 -pkg4AndAHalf-1.3 -pkg4-1.1 -pkg5-1.1 -pkg6-2.0b1 - -================Test --onlyreqdeps -Test preferred_state = stable -NULL -array(0) { -} -Packages downloaded and version: -pkg1-1.1 -pkg2-1.1 -pkg3-1.1 -pkg4-1.1 -pkg5-1.1 -pkg6-1.1 -NULL -array(0) { -} -Packages downloaded and version: -pkg1-1.1 -pkg2-1.1 -pkg3-1.1 -pkg4-1.1 -pkg5-1.1 -pkg6-1.1 -Test preferred_state = beta: -NULL -array(0) { -} -Packages downloaded and version: -pkg1-2.0b1 -pkg2-1.1 -pkg3-1.1 -pkg4-1.1 -pkg5-1.1 -pkg6-2.0b1 -Test preferred_state = alpha: -skipping Package 'pear::pkg3' optional dependency 'pear::pkg4AndAHalf' -NULL -array(0) { -} -Packages downloaded and version: -pkg1-2.0b1 -pkg2-1.1 -pkg3-1.4 -pkg4-1.1 -pkg5-1.1 -pkg6-2.0b1 \ No newline at end of file diff --git a/pear/tests/pear_downloader_old.phpt b/pear/tests/pear_downloader_old.phpt deleted file mode 100644 index 6e7225f44b..0000000000 --- a/pear/tests/pear_downloader_old.phpt +++ /dev/null @@ -1,609 +0,0 @@ ---TEST-- -PEAR_Installer test: PEAR_Installer::download() (deprecated) ---SKIPIF-- - ---FILE-- - $server, - 'preferred_state' => 'stable', - 'cache_dir' => $temp_path . DIRECTORY_SEPARATOR . 'cache', - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', - 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', - 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', - 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', - 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test', - 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',)); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w'); -fwrite($fp, $config); -fclose($fp); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.ini', 'w'); -fwrite($fp, $config); -fclose($fp); - -putenv('PHP_PEAR_SYSCONF_DIR='.$temp_path); -$home = getenv('HOME'); -if (!empty($home)) { - // for PEAR_Config initialization - putenv('HOME="'.$temp_path); -} -require_once "PEAR/Installer.php"; -require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'download_test_classes.php.inc'; -//echo 1; -// no UI is needed for these tests -$ui = false; -$installer = new test_PEAR_Installer($ui); -$curdir = getcwd(); -chdir(dirname(__FILE__)); - -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'catchit'); -set_error_handler('catchphp'); - -function catchphp($errno, $errmsg) -{ - if (error_reporting() == 0) { - return; - } - $errlevel = array( - E_USER_NOTICE => 'Notice', - E_USER_WARNING => 'Warning', - E_USER_ERROR => 'Error', - E_WARNING => 'Warning', - E_NOTICE => 'Notice' - ); - echo $errlevel[$errno] . ': ' . $errmsg . "\n"; -} -$error_to_catch = false; -function catchit($err) -{ - global $error_to_catch; - if ($error_to_catch) { - if ($err->getMessage() == $error_to_catch) { - $error_to_catch = false; - echo "Caught expected error\n"; - return; - } - } - echo "Caught error: " . $err->getMessage() . "\n"; -} - -echo "Test simple direct url download:\n"; - -$config = &PEAR_Config::singleton(); -// initialize fake pear channel -require_once 'PEAR/ChannelFile.php'; -$chan = new PEAR_ChannelFile; -$chan->setName('pear'); -$chan->setSummary('PEAR'); -$chan->setServer($server); -$chan->setDefaultPEARProtocols(); -$reg = new PEAR_Registry($config->get('php_dir'), $chan); -$packages = array("http://$server/get/pkg6-1.1.tgz"); -$a = $installer->download($packages, array(), &$config, &$installpackages, &$errors); -var_dump($a, $errors); - -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-1.1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); -unset($installpackages[0]['file']); -var_dump($installpackages); - -echo "Test simple package name download:\n"; -$installpackages = $errors = array(); -$packages = array('pkg6'); -$a = $installer->download($packages, array(), &$config, &$installpackages, &$errors); -var_dump($a, $errors); - -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-1.1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); -unset($installpackages[0]['file']); -var_dump($installpackages); - -echo "Test package name with version download:\n"; -$installpackages = $errors = array(); -$packages = array('pkg6-1.1'); -$a = $installer->download($packages, array(), &$config, &$installpackages, &$errors); -var_dump($a, $errors); - -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-1.1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); - -echo "Test package name with state stable download:\n"; -$installpackages = $errors = array(); -$packages = array('pkg6-stable'); -$a = $installer->download($packages, array(), &$config, &$installpackages, &$errors); -var_dump($a, $errors); - -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-1.1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); - -echo "Test package name with state beta download:\n"; -$installpackages = $errors = array(); -$packages = array('pkg6-beta'); -$a = $installer->download($packages, array(), &$config, &$installpackages, &$errors); -var_dump($a, $errors); - -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-2.0b1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); - -echo "================\nTest preferred_state = beta\n"; -$config->set('preferred_state', 'beta'); - -echo "Test simple package name download:\n"; -$installpackages = $errors = array(); -$packages = array('pkg6'); -$a = $installer->download($packages, array(), &$config, &$installpackages, &$errors); -var_dump($a, $errors); - -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-2.0b1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); -unset($installpackages[0]['file']); - -echo "\n================Test --alldeps\nTest preferred_state = stable\n"; -$config->set('preferred_state', 'stable'); - -$config = &PEAR_Config::singleton(); -$packages = array("http://$server/get/pkg1-1.1.tgz"); -$a = $installer->download($packages, array('alldeps' => true), &$config, &$installpackages, &$errors); -var_dump($a, $errors); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} -$packages = array("pkg1"); -$a = $installer->download($packages, array('alldeps' => true), &$config, &$installpackages, &$errors); -var_dump($a, $errors); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} - -echo "Test preferred_state = beta:\n"; -$config->set('preferred_state', 'beta'); - -$config = &PEAR_Config::singleton(); -$packages = array("pkg1"); -$a = $installer->download($packages, array('alldeps' => true), &$config, &$installpackages, &$errors); -var_dump($a, $errors); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} - -echo "Test preferred_state = alpha:\n"; -$config->set('preferred_state', 'alpha'); - -$config = &PEAR_Config::singleton(); -$packages = array("pkg1"); -$a = $installer->download($packages, array('alldeps' => true), &$config, &$installpackages, &$errors); -var_dump($a, $errors); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} -echo "\n================Test --onlyreqdeps\nTest preferred_state = stable\n"; -$config->set('preferred_state', 'stable'); - -$config = &PEAR_Config::singleton(); -$packages = array("http://$server/get/pkg1-1.1.tgz"); -$a = $installer->download($packages, array('onlyreqdeps' => true), &$config, &$installpackages, &$errors); -var_dump($a, $errors); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} -$packages = array("pkg1"); -$a = $installer->download($packages, array('onlyreqdeps' => true), &$config, &$installpackages, &$errors); -var_dump($a, $errors); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} - -echo "Test preferred_state = beta:\n"; -$config->set('preferred_state', 'beta'); - -$config = &PEAR_Config::singleton(); -$packages = array("pkg1"); -$a = $installer->download($packages, array('onlyreqdeps' => true), &$config, &$installpackages, &$errors); -var_dump($a, $errors); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} - -echo "Test preferred_state = alpha:\n"; -$config->set('preferred_state', 'alpha'); - -$config = &PEAR_Config::singleton(); -$packages = array("pkg1"); -$a = $installer->download($packages, array('onlyreqdeps' => true), &$config, &$installpackages, &$errors); -var_dump($a, $errors); -echo "Packages downloaded and version:\n"; -foreach ($installpackages as $package) { - echo $package['pkg'] . '-' . $package['info']['version'] . "\n"; -} - - -chdir($curdir); -cleanall($temp_path); - -/* -echo "File exists? "; -echo (is_file($installpackages[0]['file'])) ? "yes\n" : "no\n"; -echo "File is the same? "; -$good = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-1.1.tgz')); -$dled = implode('', file($installpackages[0]['file'])); -echo ($good == $dled) ? "yes\n" : "no\n"; -unlink($installpackages[0]['file']); -unset($installpackages[0]['file']);*/ -// ------------------------------------------------------------------------- // - -function cleanall($dir) -{ - $dp = opendir($dir); - while ($ent = readdir($dp)) { - if ($ent == '.' || $ent == '..') { - continue; - } - if (is_dir($dir . DIRECTORY_SEPARATOR . $ent)) { - cleanall($dir . DIRECTORY_SEPARATOR . $ent); - } else { - unlink($dir . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir($dir); -} -?> ---EXPECT-- -Test simple direct url download: -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -File exists? yes -File is the same? yes -array(1) { - [0]=> - array(2) { - ["pkg"]=> - string(4) "pkg6" - ["info"]=> - array(11) { - ["provides"]=> - array(0) { - } - ["filelist"]=> - array(3) { - ["zoorb.php"]=> - array(2) { - ["role"]=> - string(3) "php" - ["baseinstalldir"]=> - string(5) "groob" - } - ["goompness\oggbrzitzkee.php"]=> - array(2) { - ["role"]=> - string(3) "php" - ["baseinstalldir"]=> - string(5) "groob" - } - ["goompness\Mopreeb.php"]=> - array(2) { - ["role"]=> - string(3) "php" - ["baseinstalldir"]=> - string(5) "groob" - } - } - ["package"]=> - string(4) "pkg6" - ["summary"]=> - string(32) "required test for PEAR_Installer" - ["description"]=> - string(12) "fake package" - ["maintainers"]=> - array(1) { - [0]=> - array(4) { - ["handle"]=> - string(8) "fakeuser" - ["name"]=> - string(9) "Joe Shmoe" - ["email"]=> - string(18) "nobody@example.com" - ["role"]=> - string(4) "lead" - } - } - ["version"]=> - string(3) "1.1" - ["release_date"]=> - string(10) "2003-09-09" - ["release_license"]=> - string(11) "PHP License" - ["release_state"]=> - string(6) "stable" - ["release_notes"]=> - string(24) "required dependency test" - } - } -} -Test simple package name download: -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -File exists? yes -File is the same? yes -array(1) { - [0]=> - array(2) { - ["pkg"]=> - string(4) "pkg6" - ["info"]=> - array(11) { - ["provides"]=> - array(0) { - } - ["filelist"]=> - array(3) { - ["zoorb.php"]=> - array(2) { - ["role"]=> - string(3) "php" - ["baseinstalldir"]=> - string(5) "groob" - } - ["goompness\oggbrzitzkee.php"]=> - array(2) { - ["role"]=> - string(3) "php" - ["baseinstalldir"]=> - string(5) "groob" - } - ["goompness\Mopreeb.php"]=> - array(2) { - ["role"]=> - string(3) "php" - ["baseinstalldir"]=> - string(5) "groob" - } - } - ["package"]=> - string(4) "pkg6" - ["summary"]=> - string(32) "required test for PEAR_Installer" - ["description"]=> - string(12) "fake package" - ["maintainers"]=> - array(1) { - [0]=> - array(4) { - ["handle"]=> - string(8) "fakeuser" - ["name"]=> - string(9) "Joe Shmoe" - ["email"]=> - string(18) "nobody@example.com" - ["role"]=> - string(4) "lead" - } - } - ["version"]=> - string(3) "1.1" - ["release_date"]=> - string(10) "2003-09-09" - ["release_license"]=> - string(11) "PHP License" - ["release_state"]=> - string(6) "stable" - ["release_notes"]=> - string(24) "required dependency test" - } - } -} -Test package name with version download: -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -File exists? yes -File is the same? yes -Test package name with state stable download: -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -File exists? yes -File is the same? yes -Test package name with state beta download: -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -File exists? yes -File is the same? yes -================ -Test preferred_state = beta -Test simple package name download: -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -File exists? yes -File is the same? yes - -================Test --alldeps -Test preferred_state = stable -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -Packages downloaded and version: -pkg1-1.1 -pkg2-1.1 -pkg3-1.1 -pkg4-1.1 -pkg5-1.1 -pkg6-1.1 -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -Packages downloaded and version: -pkg1-1.1 -pkg2-1.1 -pkg3-1.1 -pkg4-1.1 -pkg5-1.1 -pkg6-1.1 -Test preferred_state = beta: -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -Packages downloaded and version: -pkg1-2.0b1 -pkg2-1.1 -pkg3-1.1 -pkg4-1.1 -pkg5-1.1 -pkg6-2.0b1 -Test preferred_state = alpha: -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -Packages downloaded and version: -pkg1-2.0b1 -pkg2-1.1 -pkg3-1.4 -pkg4AndAHalf-1.3 -pkg4-1.1 -pkg5-1.1 -pkg6-2.0b1 - -================Test --onlyreqdeps -Test preferred_state = stable -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -Packages downloaded and version: -pkg1-1.1 -pkg2-1.1 -pkg3-1.1 -pkg4-1.1 -pkg5-1.1 -pkg6-1.1 -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -Packages downloaded and version: -pkg1-1.1 -pkg2-1.1 -pkg3-1.1 -pkg4-1.1 -pkg5-1.1 -pkg6-1.1 -Test preferred_state = beta: -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -Packages downloaded and version: -pkg1-2.0b1 -pkg2-1.1 -pkg3-1.1 -pkg4-1.1 -pkg5-1.1 -pkg6-2.0b1 -Test preferred_state = alpha: -skipping Package 'pear::pkg3' optional dependency 'pear::pkg4AndAHalf' -Warning: PEAR Warning: PEAR_Installer::download() is deprecated in favor of PEAR_Downloader class -NULL -array(0) { -} -Packages downloaded and version: -pkg1-2.0b1 -pkg2-1.1 -pkg3-1.4 -pkg4-1.1 -pkg5-1.1 -pkg6-2.0b1 \ No newline at end of file diff --git a/pear/tests/pear_error.phpt b/pear/tests/pear_error.phpt deleted file mode 100644 index 2a77cf497d..0000000000 --- a/pear/tests/pear_error.phpt +++ /dev/null @@ -1,156 +0,0 @@ ---TEST-- -PEAR_Error: basic test ---SKIPIF-- - ---FILE-- - "Error", - 2 => "Warning", - 4 => "Parsing Error", - 8 => "Notice", - 16 => "Core Error", - 32 => "Core Warning", - 64 => "Compile Error", - 128 => "Compile Warning", - 256 => "User Error", - 512 => "User Warning", - 1024=> "User Notice" - ); - if (preg_match('/^The call_user_method.. function is deprecated/', - $errmsg)) { - return; - } - $prefix = $errortype[$errno]; - $file = basename($file); - print "\n$prefix: $errmsg in $file on line XXX\n"; -} - -error_reporting(E_ALL); -set_error_handler("test_error_handler"); - -class Foo_Error extends PEAR_Error -{ - function Foo_Error($message = "unknown error", $code = null, - $mode = null, $options = null, $userinfo = null) - { - $this->PEAR_Error($message, $code, $mode, $options, $userinfo); - $this->error_message_prefix = 'Foo_Error prefix'; - } -} - -class Test1 extends PEAR { - function Test1() { - $this->PEAR("Foo_Error"); - } - function runtest() { - return $this->raiseError("test error"); - } -} - -function errorhandler(&$obj) { - print "errorhandler function called, obj=".$obj->toString()."\n"; -} - -class errorclass { - function errorhandler(&$obj) { - print "errorhandler method called, obj=".$obj->toString()."\n"; - } -} - -print "specify error class: "; -$obj = new Test1; -$err = $obj->runtest(); -print $err->toString() . "\n"; - -$eo = new errorclass; - -print "default PEAR_Error: "; -$err = new PEAR_Error; -print $err->toString() . "\n"; -print "Testing it: "; -var_dump(PEAR::isError($err)); -print "This is not an error: "; -$str = "not an error"; -var_dump(PEAR::isError($str)); - -print "Now trying a bunch of variations...\n"; - -print "different message: "; -$err = new PEAR_Error("test error"); -print $err->toString() . "\n"; - -print "different message,code: "; -$err = new PEAR_Error("test error", -42); -print $err->toString() . "\n"; - -print "mode=print: "; -$err = new PEAR_Error("test error", -42, PEAR_ERROR_PRINT); -print $err->toString() . "\n"; - -print "mode=callback(function): "; -$err = new PEAR_Error("test error", -42, PEAR_ERROR_CALLBACK, "errorhandler"); - -print "mode=callback(method): "; -$err = new PEAR_Error("test error", -42, PEAR_ERROR_CALLBACK, - array(&$eo, "errorhandler")); - -print "mode=print&trigger: "; -$err = new PEAR_Error("test error", -42, PEAR_ERROR_PRINT|PEAR_ERROR_TRIGGER); -print $err->toString() . "\n"; - -print "mode=trigger:"; -$err = new PEAR_Error("test error", -42, PEAR_ERROR_TRIGGER); -print $err->toString() . "\n"; - -print "mode=trigger,level=notice:"; -$err = new PEAR_Error("test error", -42, PEAR_ERROR_TRIGGER, E_USER_NOTICE); -print $err->toString() . "\n"; - -print "mode=trigger,level=warning:"; -$err = new PEAR_Error("test error", -42, PEAR_ERROR_TRIGGER, E_USER_WARNING); -print $err->toString() . "\n"; - -print "mode=trigger,level=error:"; -$err = new PEAR_Error("test error", -42, PEAR_ERROR_TRIGGER, E_USER_ERROR); -print $err->toString() . "\n"; - -?> ---EXPECT-- -specify error class: [foo_error: message="test error" code=0 mode=return level=notice prefix="Foo_Error prefix" info=""] -default PEAR_Error: [pear_error: message="unknown error" code=0 mode=return level=notice prefix="" info=""] -Testing it: bool(true) -This is not an error: bool(false) -Now trying a bunch of variations... -different message: [pear_error: message="test error" code=0 mode=return level=notice prefix="" info=""] -different message,code: [pear_error: message="test error" code=-42 mode=return level=notice prefix="" info=""] -mode=print: test error[pear_error: message="test error" code=-42 mode=print level=notice prefix="" info=""] -mode=callback(function): errorhandler function called, obj=[pear_error: message="test error" code=-42 mode=callback callback=errorhandler prefix="" info=""] -mode=callback(method): errorhandler method called, obj=[pear_error: message="test error" code=-42 mode=callback callback=errorclass::errorhandler prefix="" info=""] -mode=print&trigger: test error -User Notice: test error in PEAR.php on line XXX -[pear_error: message="test error" code=-42 mode=print|trigger level=notice prefix="" info=""] -mode=trigger: -User Notice: test error in PEAR.php on line XXX -[pear_error: message="test error" code=-42 mode=trigger level=notice prefix="" info=""] -mode=trigger,level=notice: -User Notice: test error in PEAR.php on line XXX -[pear_error: message="test error" code=-42 mode=trigger level=notice prefix="" info=""] -mode=trigger,level=warning: -User Warning: test error in PEAR.php on line XXX -[pear_error: message="test error" code=-42 mode=trigger level=warning prefix="" info=""] -mode=trigger,level=error: -User Error: test error in PEAR.php on line XXX -[pear_error: message="test error" code=-42 mode=trigger level=error prefix="" info=""] diff --git a/pear/tests/pear_error2.phpt b/pear/tests/pear_error2.phpt deleted file mode 100644 index 9dbfa3b22c..0000000000 --- a/pear/tests/pear_error2.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -PEAR_Error: die mode ---SKIPIF-- - ---FILE-- -toString() . "\n"; - -?> ---EXPECT-- -mode=die: test error!! diff --git a/pear/tests/pear_error3.phpt b/pear/tests/pear_error3.phpt deleted file mode 100644 index 2e5ce8d2a2..0000000000 --- a/pear/tests/pear_error3.phpt +++ /dev/null @@ -1,58 +0,0 @@ ---TEST-- -PEAR_Error: default error handling ---SKIPIF-- - ---FILE-- -getMessage()."\n"; - } else { - print "errorhandler called, but without an error object.\n"; - } -} - -// Test 1 -PEAR::setErrorHandling(PEAR_ERROR_PRINT, "OOPS: %s\n"); -$tmp = new PEAR; -$tmp->raiseError("error happens"); - -// Return PEAR to its original state -$GLOBALS['_PEAR_default_error_mode'] = PEAR_ERROR_RETURN; -$GLOBALS['_PEAR_default_error_options'] = E_USER_NOTICE; -$GLOBALS['_PEAR_default_error_callback'] = ''; - -// Test 2 -$obj = new PEAR; -$obj->setErrorHandling(PEAR_ERROR_PRINT); -$obj->raiseError("error 1\n"); -$obj->setErrorHandling(null); -$obj->raiseError("error 2\n"); -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, "errorhandler"); -$obj->raiseError("error 3"); -$obj->setErrorHandling(PEAR_ERROR_PRINT); -$obj->raiseError("error 4\n"); - -?> ---EXPECT-- -OOPS: error happens -error 1 -errorhandler called with an error object. -error message: error 3 -error 4 \ No newline at end of file diff --git a/pear/tests/pear_error4.phpt b/pear/tests/pear_error4.phpt deleted file mode 100644 index 0d6754c88b..0000000000 --- a/pear/tests/pear_error4.phpt +++ /dev/null @@ -1,108 +0,0 @@ ---TEST-- -PEAR_Error: expected errors ---SKIPIF-- - ---FILE-- -getMessage()."\n"; - } else { - print "errorhandler called without error object\n"; - } -} - -$obj = new PEAR; -$obj->setErrorHandling(PEAR_ERROR_CALLBACK, "errorhandler"); - -print "subtest 1\n"; -$obj->expectError(1); -$obj->raiseError("1", 1); -$obj->popExpect(); -$obj->raiseError("2", 2); - -print "subtest 2\n"; -$obj->expectError(3); -$obj->expectError(2); -$obj->raiseError("3", 3); - -print "subtest 3\n"; -$obj->popExpect(); -$obj->raiseError("3", 3); -$obj->popExpect(); - -print "subtest 4\n"; -$obj->expectError(array(1,2,3,4,5)); -$obj->raiseError("0", 0); -$obj->raiseError("1", 1); -$obj->raiseError("2", 2); -$obj->raiseError("3", 3); -$obj->raiseError("4", 4); -$obj->raiseError("5", 5); -$obj->raiseError("6", 6); -$obj->raiseError("error"); -$obj->popExpect(); - -print "subtest 5\n"; -$obj->expectError("*"); -$obj->raiseError("42", 42); -$obj->raiseError("75", 75); -$obj->raiseError("13", 13); -$obj->popExpect(); - -print "subtest 6\n"; -$obj->expectError(); -$obj->raiseError("123", 123); -$obj->raiseError("456", 456); -$obj->raiseError("789", 789); -$obj->popExpect(); - -print "subtest 7\n"; -$obj->expectError("syntax error"); -$obj->raiseError("type mismatch"); -$obj->raiseError("syntax error"); -$obj->popExpect(); - -print "subtest 8\n"; -$obj->expectError(array(1, 2, 3)); -$obj->expectError(array(3, 4, 5)); -$obj->raiseError(4); -$obj->delExpect(2); -$obj->raiseError(3); -$obj->delExpect(1, 3, 4, 5); -$err = $obj->delExpect(2); - -?> ---EXPECT-- -subtest 1 -error: 2 -subtest 2 -error: 3 -subtest 3 -subtest 4 -error: 0 -error: 6 -error: error -subtest 5 -subtest 6 -subtest 7 -error: type mismatch -subtest 8 -error: 4 -error: 3 -error: The expected error you submitted does not exist diff --git a/pear/tests/pear_installer1.phpt b/pear/tests/pear_installer1.phpt deleted file mode 100644 index 9daf2ecf07..0000000000 --- a/pear/tests/pear_installer1.phpt +++ /dev/null @@ -1,213 +0,0 @@ ---TEST-- -PEAR_Installer test extractDownloadFileName, checkDeps ---SKIPIF-- - ---FILE-- -set('php_dir', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'testinstallertemp'); -$reg = &new PEAR_Registry($config->get('php_dir')); -$chan = new PEAR_ChannelFile; -$chan->setName('oddball'); -$chan->setServer('example.com'); -$chan->setSummary('oddball'); -$chan->setPackageNameRegex('[a-z][a-z0-9]*(?:\.[a-z0-9]+)*'); -$reg->addChannel($chan); -$installer = new PEAR_Installer($ui); -$installer->config = &$config; -echo "test extractDownloadFileName:\n"; -echo 'existing file: '; -echo ($temp_path . DIRECTORY_SEPARATOR . 'user.conf' == - $installer->extractDownloadFileName($temp_path . DIRECTORY_SEPARATOR . 'user.conf', - $ui)) ? "yes\n" : "no\n"; -var_dump($ui); -echo 'invalid match: '; -echo $installer->extractDownloadFileName('27', - $ui); -echo "\n"; -var_dump($ui); -echo 'valid match, no version: '; -echo $installer->extractDownloadFileName('Testpackage', $ui); -echo "\n"; -var_dump($ui); -echo 'invalid match, has invalid version: '; -echo $installer->extractDownloadFileName('Testpackage-##', $ui); -echo "\n"; -var_dump($ui); -echo 'valid match, has version: '; -echo $installer->extractDownloadFileName('Testpackage-1.2', $ui); -echo "\n"; -var_dump($ui); -echo "valid match, has unknown channel:\n"; -var_dump($installer->extractDownloadFileName('Unknown::Testpackage', $ui)); -var_dump($ui); -echo "invalid match, has known channel, invalid package name:\n"; -var_dump($installer->extractDownloadFileName('Oddball::Testpackage', $ui)); -var_dump($ui); -echo "valid match, has known channel, valid package name:\n"; -var_dump($installer->extractDownloadFileName('Oddball::testpackage.third3', $ui)); -var_dump($ui); -echo "valid match, has known channel, valid package name, version:\n"; -var_dump($installer->extractDownloadFileName('Oddball::testpackage.third3-54.7354', $ui)); -var_dump($ui); - -echo "\ntest checkDeps 1:\n"; -$fakerel = array('release_deps' => -array( - array( - 'type' => 'pkg', - 'rel '=> 'has', - 'name' => 'foo', - 'optional' => 'yes' - ), - array( - 'type' => 'pkg', - 'rel '=> 'ge', - 'version' => '1.6', - 'name' => 'bar', - ), -)); -$res = ''; -var_dump($installer->checkDeps($fakerel, $res)); -var_dump($res); - -echo "\ntest checkDeps 1.1:\n"; -$fakerel = array('release_deps' => -array( - array( - 'type' => 'pkg', - 'rel '=> 'has', - 'name' => 'foo', - 'optional' => 'yes', - 'channel' => 'grob', - ), - array( - 'type' => 'pkg', - 'rel '=> 'ge', - 'version' => '1.6', - 'name' => 'bar', - 'channel' => 'prego', - ), -)); -$res = ''; -var_dump($installer->checkDeps($fakerel, $res)); -var_dump($res); -$fakerel = array('release_deps' => -array( - array( - 'type' => 'pkg', - 'rel '=> 'has', - 'name' => 'foo', - 'optional' => 'yes' - ), -)); -echo "\ntest checkDeps 2:\n"; -$res = ''; -var_dump($installer->checkDeps($fakerel, $res)); -var_dump($res); -$fakerel = array('release_deps' => -array( - array( - 'type' => 'pkg', - 'rel '=> 'has', - 'name' => 'foo', - 'optional' => 'yes', - 'channel' => 'purple', - ), -)); -echo "\ntest checkDeps 2.1:\n"; -$res = ''; -var_dump($installer->checkDeps($fakerel, $res)); -var_dump($res); -cleanall($temp_path); -function cleanall($dir) -{ - $dp = opendir($dir); - while ($ent = readdir($dp)) { - if ($ent == '.' || $ent == '..') { - continue; - } - if (is_dir($dir . DIRECTORY_SEPARATOR . $ent)) { - cleanall($dir . DIRECTORY_SEPARATOR . $ent); - } else { - unlink($dir . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir($dir); -} -?> ---EXPECT-- -test extractDownloadFileName: -existing file: yes -bool(false) -invalid match: 27 -NULL -valid match, no version: Testpackage -NULL -invalid match, has invalid version: Testpackage-## -NULL -valid match, has version: Testpackage -string(3) "1.2" -valid match, has unknown channel: -array(2) { - ["channel"]=> - string(7) "Unknown" - ["package"]=> - string(11) "Testpackage" -} -NULL -invalid match, has known channel, invalid package name: -string(20) "Oddball::Testpackage" -NULL -valid match, has known channel, valid package name: -array(2) { - ["channel"]=> - string(7) "Oddball" - ["package"]=> - string(18) "testpackage.third3" -} -NULL -valid match, has known channel, valid package name, version: -array(2) { - ["channel"]=> - string(7) "Oddball" - ["package"]=> - string(18) "testpackage.third3" -} -string(7) "54.7354" - -test checkDeps 1: -bool(true) -string(29) " -requires package `pear::bar'" - -test checkDeps 1.1: -bool(true) -string(30) " -requires package `prego::bar'" - -test checkDeps 2: -bool(false) -string(83) "Optional dependencies: -package `pear::foo' is recommended to utilize some features." - -test checkDeps 2.1: -bool(false) -string(85) "Optional dependencies: -package `purple::foo' is recommended to utilize some features." \ No newline at end of file diff --git a/pear/tests/pear_installer2.phpt b/pear/tests/pear_installer2.phpt deleted file mode 100644 index 541ad71b76..0000000000 --- a/pear/tests/pear_installer2.phpt +++ /dev/null @@ -1,398 +0,0 @@ ---TEST-- -PEAR_Installer test _installFile() ---SKIPIF-- - ---FILE-- - 'pear.php.net', - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', - 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', - 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', - 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', - 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test', - 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',)); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w'); -fwrite($fp, $config); -fclose($fp); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.ini', 'w'); -fwrite($fp, $config); -fclose($fp); - -putenv('PHP_PEAR_SYSCONF_DIR='.$temp_path); -$home = getenv('HOME'); -if (!empty($home)) { - // for PEAR_Config initialization - putenv('HOME="'.$temp_path); -} -require_once "PEAR/Installer.php"; - -// no UI is needed for these tests -$ui = false; -$installer = new PEAR_Installer($ui); -$curdir = getcwd(); -chdir(dirname(__FILE__)); - -echo "test _installFile():\n"; -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'installer2.phpt.testfile.php', 'w'); -fwrite($fp, 'a'); -fclose($fp); -// pretend we just parsed a package.xml -$installer->pkginfo = array('package' => 'Foo'); - -echo "install as role=\"php\":\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'php'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file ext/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "install as role=\"ext\":\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'ext'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file php/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'ext' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "install as role=\"data\":\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'data'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file data/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . - 'Foo' . DIRECTORY_SEPARATOR . '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "install as role=\"doc\":\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'doc'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file doc/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'doc' . DIRECTORY_SEPARATOR . - 'Foo' . DIRECTORY_SEPARATOR . '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "install as role=\"test\":\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'test'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file test/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . - 'Foo' . DIRECTORY_SEPARATOR . '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "install as role=\"script\":\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file bin/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -$installer->rollbackFileTransaction(); - -echo "install as invalid role=\"klingon\":\n"; -$err = $installer->_installFile('installer2.phpt.testfile.php', array('role' => 'klingon'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array()); -echo 'returned PEAR_Error: ' . (get_class($err) == 'pear_error' ? "yes\n" : "no\n"); -if (is_object($err)) { - echo 'message: ' . $err->getMessage() . "\n\n"; -} -echo 'file bin/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "install non-existent file:\n"; -$err = $installer->_installFile('....php', array('role' => 'php'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array()); -echo 'returned PEAR_Error: ' . (get_class($err) == 'pear_error' ? "yes\n" : "no\n"); -if (is_object($err)) { - echo 'message: ' . $err->getMessage() . "\n"; -} -echo 'file bin/.tmp....php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmp....php') ? "yes\n" : "no\n"); - -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'installer2.phpt.testfile.php', 'w'); -fwrite($fp, '@TEST@ stuff'); -fclose($fp); - -echo "\ntest valid md5sum:\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', 'md5sum' => md5('@TEST@ stuff')), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file bin/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -$installer->rollbackFileTransaction(); - -echo "test invalid md5sum:\n"; -$err = $installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', 'md5sum' => md5('oops stuff')), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array()); -echo 'returned PEAR_Error: ' . (get_class($err) == 'pear_error' ? "yes\n" : "no\n"); -if (is_object($err)) { - echo 'message: ' . ($err->getMessage() == 'bad md5sum for file ' . $temp_path . DIRECTORY_SEPARATOR . 'bin' . - DIRECTORY_SEPARATOR . 'installer2.phpt.testfile.php' ? 'match' : 'no match') . "\n"; -} -echo 'file bin/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "test invalid md5sum with --force:\n"; -ob_start(); -$err = $installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', 'md5sum' => md5('oops stuff')), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array('force' => true)); -$warning = ob_get_contents(); -ob_end_clean(); -echo 'warning : '; -echo ($warning == 'warning : bad md5sum for file ' . $temp_path . DIRECTORY_SEPARATOR . 'bin' . - DIRECTORY_SEPARATOR . "installer2.phpt.testfile.php\n" ? "match\n" : "no match\n"); -echo 'returned PEAR_Error: ' . (get_class($err) == 'pear_error' ? "yes\n" : "no\n"); -if (is_object($err)) { - echo 'message: ' . ($err->getMessage() == 'bad md5sum for file ' . $temp_path . DIRECTORY_SEPARATOR . 'bin' . - DIRECTORY_SEPARATOR . 'installer2.phpt.testfile.php' ? 'match' : 'no match') . "\n"; -} -echo 'file bin/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -define('PEARINSTALLERTEST2_FAKE_FOO_CONST', 'good'); -echo "\ntest replacements:\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'replacements' => array(array('type' => 'php-const', 'from' => '@TEST@', 'to' => 'PEARINSTALLERTEST2_FAKE_FOO_CONST'))), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo "==>test php-const replacement: equals 'good stuff'? => "; -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php')) -{ - $a = implode(file($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php'), ''); - echo "$a\n"; -} else { - echo "no! file installation failed\n"; -} -$installer->rollbackFileTransaction(); - -echo "==>test invalid php-const replacement:\n"; -$err = $installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'replacements' => array(array('type' => 'php-const', 'from' => '@TEST@', 'to' => '%PEARINSTALLERTEST2_FAKE_FOO_CONST'))), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array()); -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php')) -{ - $a = implode(file($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php'), ''); - echo "$a\n"; -} else { - echo "no! file installation failed\n"; -} - -$installer->rollbackFileTransaction(); - -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'replacements' => array(array('type' => 'pear-config', 'from' => '@TEST@', 'to' => 'master_server'))), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo "==>test pear-config replacement: equals 'pear.php.net stuff'? => "; -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php')) -{ - $a = implode(file($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php'), ''); - echo "$a\n"; -} else { - echo "no! file installation failed\n"; -} -$installer->rollbackFileTransaction(); - -echo "==>test invalid pear-config replacement\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'replacements' => array(array('type' => 'pear-config', 'from' => '@TEST@', 'to' => 'blahblahblah'))), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php')) -{ - $a = implode(file($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php'), ''); - echo "$a\n"; -} else { - echo "no! file installation failed\n"; -} -$installer->rollbackFileTransaction(); - -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'replacements' => array(array('type' => 'package-info', 'from' => '@TEST@', 'to' => 'package'))), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo "==>test package-info replacement: equals 'Foo stuff'? => "; -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php')) -{ - $a = implode(file($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php'), ''); - echo "$a\n"; -} else { - echo "no! file installation failed\n"; -} -$installer->rollbackFileTransaction(); - -echo "==>test invalid package-info replacement:\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'replacements' => array(array('type' => 'package-info', 'from' => '@TEST@', 'to' => 'gronk'))), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php')) -{ - $a = implode(file($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php'), ''); - echo "$a\n"; -} else { - echo "no! file installation failed\n"; -} -$installer->rollbackFileTransaction(); - -echo "\ntest install-as:\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'install-as' => 'foobar.php'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo "==>test install as 'foobar.php'. file exists? "; -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - '.tmpfoobar.php')) -{ - echo "yes\n"; -} else { - echo "no\n"; -} -$installer->rollbackFileTransaction(); - -echo "\ntest baseinstalldir:\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'baseinstalldir' => 'Foo/Mine'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo "==>test baseinstalldir = 'Foo/Mine'. file exists? "; -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . - 'Foo' . DIRECTORY_SEPARATOR . 'Mine' . DIRECTORY_SEPARATOR . '.tmpinstaller2.phpt.testfile.php')) -{ - echo "yes\n"; -} else { - echo "no\n"; -} -$installer->rollbackFileTransaction(); - -//cleanup -chdir($curdir); -cleanall($temp_path); - -// ------------------------------------------------------------------------- // - -function cleanall($dir) -{ - $dp = opendir($dir); - while ($ent = readdir($dp)) { - if ($ent == '.' || $ent == '..') { - continue; - } - if (is_dir($dir . DIRECTORY_SEPARATOR . $ent)) { - cleanall($dir . DIRECTORY_SEPARATOR . $ent); - } else { - unlink($dir . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir($dir); -} -?> ---EXPECT-- -test _installFile(): -install as role="php": -int(1) -file ext/.tmpinstaller2.phpt.testfile.php exists? => yes -install as role="ext": -int(1) -file php/.tmpinstaller2.phpt.testfile.php exists? => yes -install as role="data": -int(1) -file data/.tmpinstaller2.phpt.testfile.php exists? => yes -install as role="doc": -int(1) -file doc/.tmpinstaller2.phpt.testfile.php exists? => yes -install as role="test": -int(1) -file test/.tmpinstaller2.phpt.testfile.php exists? => yes -install as role="script": -int(1) -file bin/.tmpinstaller2.phpt.testfile.php exists? => yes -install as invalid role="klingon": -returned PEAR_Error: yes -message: Invalid role `klingon' for file installer2.phpt.testfile.php - -file bin/.tmpinstaller2.phpt.testfile.php exists? => no -install non-existent file: -returned PEAR_Error: yes -message: file does not exist -file bin/.tmp....php exists? => no - -test valid md5sum: -int(1) -file bin/.tmpinstaller2.phpt.testfile.php exists? => yes -test invalid md5sum: -returned PEAR_Error: yes -message: match -file bin/.tmpinstaller2.phpt.testfile.php exists? => no -test invalid md5sum with --force: -warning : match -returned PEAR_Error: no -file bin/.tmpinstaller2.phpt.testfile.php exists? => yes - -test replacements: -int(1) -==>test php-const replacement: equals 'good stuff'? => good stuff -==>test invalid php-const replacement: -invalid php-const replacement: %PEARINSTALLERTEST2_FAKE_FOO_CONST -@TEST@ stuff -int(1) -==>test pear-config replacement: equals 'pear.php.net stuff'? => pear.php.net stuff -==>test invalid pear-config replacement -invalid pear-config replacement: blahblahblah -int(1) -@TEST@ stuff -int(1) -==>test package-info replacement: equals 'Foo stuff'? => Foo stuff -==>test invalid package-info replacement: -invalid package-info replacement: gronk -int(1) -@TEST@ stuff - -test install-as: -int(1) -==>test install as 'foobar.php'. file exists? yes - -test baseinstalldir: -int(1) -==>test baseinstalldir = 'Foo/Mine'. file exists? yes - diff --git a/pear/tests/pear_installer3.phpt b/pear/tests/pear_installer3.phpt deleted file mode 100644 index f997ab7e4d..0000000000 --- a/pear/tests/pear_installer3.phpt +++ /dev/null @@ -1,415 +0,0 @@ ---TEST-- -PEAR_Installer test #3 File Transactions ---SKIPIF-- - ---FILE-- - 'pear.php.net', - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', - 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', - 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', - 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', - 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test', - 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',)); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w'); -fwrite($fp, $config); -fclose($fp); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.ini', 'w'); -fwrite($fp, $config); -fclose($fp); - -putenv('PHP_PEAR_SYSCONF_DIR='.$temp_path); -$home = getenv('HOME'); -if (!empty($home)) { - // for PEAR_Config initialization - putenv('HOME="'.$temp_path); -} -require_once "PEAR/Installer.php"; - -// no UI is needed for these tests -$ui = false; -$installer = new PEAR_Installer($ui); -$installer->debug = 2; // hack debugging in -$curdir = getcwd(); -chdir(dirname(__FILE__)); - -echo "test addFileOperation():\n"; -echo "invalid input to addFileOperation():\n"; -$err = $installer->addFileOperation('rename', 2); -echo 'Returned PEAR_Error?'; -echo (get_class($err) == 'pear_error' ? " yes\n" : " no\n"); -if (get_class($err) == 'pear_error') { - echo $err->getMessage() . "\n"; -} -echo 'count($installer->file_operations) = '; -var_dump(count($installer->file_operations)); -echo "Do valid addFileOperation() delete\n"; -touch($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah.phpt'); -$installer->addFileOperation('delete', array($temp_path . DIRECTORY_SEPARATOR . - 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah.phpt')); -echo 'count($installer->file_operations) = '; -var_dump(count($installer->file_operations)); - -echo "test valid commitFileTransaction():\n"; -if ($installer->commitFileTransaction()) { - echo "worked\n"; -} else { - echo "didn't work!\n"; -} - -echo "Do valid addFileOperation() rename\n"; -touch($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah.phpt'); -$installer->addFileOperation('rename', array($temp_path . DIRECTORY_SEPARATOR . - 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah.phpt', $temp_path . - DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'renamed.phpt')); - -echo 'file renamed.phpt exists?'; -clearstatcache(); -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR - . 'renamed.phpt') ? " yes\n" : " no\n"); -echo "test valid commitFileTransaction():\n"; -if ($installer->commitFileTransaction()) { - echo "worked\n"; -} else { - echo "didn't work!\n"; -} -echo 'file renamed.phpt exists?'; -clearstatcache(); -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR - . 'renamed.phpt') ? " yes\n" : " no\n"); -unlink($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR - . 'renamed.phpt'); - -echo "Do valid addFileOperation() chmod\n"; -touch($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah.phpt'); -clearstatcache(); -$perms = fileperms($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah.phpt'); -// check to see if chmod works on this OS -chmod($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah.phpt', 0776); -clearstatcache(); -if (fileperms($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah.phpt') - == $perms && substr(PHP_OS, 0, 3) == 'WIN') { - // we are on windows, so skip this test, but simulate success -echo <<addFileOperation('chmod', array(0640, $temp_path . DIRECTORY_SEPARATOR . - 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah.phpt')); - - echo 'file permissions are: ' . decoct(fileperms($temp_path . DIRECTORY_SEPARATOR . - 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah.phpt')) . "\n"; - echo "test valid commitFileTransaction():\n"; - if ($installer->commitFileTransaction()) { - echo "worked\n"; - } else { - echo "didn't work!\n"; - } - echo 'file permissions are: ' . decoct(fileperms($temp_path . DIRECTORY_SEPARATOR . - 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah.phpt')) . "\n"; -} -unlink($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR - . 'installertestfooblah.phpt'); - -mkdir($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR - . 'installertestfooblah'); -echo "Do valid addFileOperation() rmdir\n"; -echo 'directory exists?'; -clearstatcache(); -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . - 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah') ? " yes\n" : " no\n"); -$installer->addFileOperation('rmdir', array($temp_path . DIRECTORY_SEPARATOR . - 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah')); - -echo "test valid commitFileTransaction():\n"; -if ($installer->commitFileTransaction()) { - echo "worked\n"; -} else { - echo "didn't work!\n"; -} -echo 'directory exists?'; - -clearstatcache(); -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . - 'tmp' . DIRECTORY_SEPARATOR . 'installertestfooblah') ? " yes\n" : " no\n"); - -echo "Do valid addFileOperation() installed_as\n"; -$installer->addFileOperation('installed_as', array('test.php', - $temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . - 'glomp' . DIRECTORY_SEPARATOR . 'fromp' . DIRECTORY_SEPARATOR - . 'installertestfooblah.phpt', - $temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR, - 'glomp' . DIRECTORY_SEPARATOR . 'fromp')); -echo "test valid commitFileTransaction():\n"; -if ($installer->commitFileTransaction()) { - echo "worked\n"; -} else { - echo "didn't work!\n"; -} -if (isset($installer->pkginfo['filelist'])) { - echo "filelist created\n"; -} else { - echo "filelist not created!\n"; -} -if (isset($installer->pkginfo['filelist']['test.php'])) { - echo "filelist test.php created\n"; -} else { - echo "filelist test.php not created!\n"; -} -if (isset($installer->pkginfo['filelist']['test.php']['installed_as'])) { - echo "filelist test.php installed_as created\n"; -} else { - echo "filelist test.php installed_as not created!\n"; -} -$p = $temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . - 'glomp' . DIRECTORY_SEPARATOR . 'fromp' . DIRECTORY_SEPARATOR - . 'installertestfooblah.phpt'; -if (@$installer->pkginfo['filelist']['test.php']['installed_as'] == $p) { - echo "filelist test.php installed_as is correct\n"; -} else { - echo "filelist test.php installed_as is not correct!\n"; -} -if (isset($installer->pkginfo['filelist']['dirtree'])) { - echo "filelist dirtree created\n"; -} else { - echo "filelist dirtree not created!\n"; -} -$p = $temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . - 'glomp'; -if (isset($installer->pkginfo['filelist']['dirtree'][$p])) { - echo "filelist dirtree glomp created\n"; -} else { - echo "filelist dirtree glomp not created!\n"; -} -$p .= DIRECTORY_SEPARATOR . 'fromp'; -if (isset($installer->pkginfo['filelist']['dirtree'][$p])) { - echo "filelist dirtree fromp created\n"; -} else { - echo "filelist dirtree fromp not created!\n"; -} - -echo "Do valid addFileOperation() installed_as\n"; -$installer->addFileOperation('installed_as', array('test.php', - $temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . - 'glomp' . DIRECTORY_SEPARATOR . 'fromp' . DIRECTORY_SEPARATOR - . 'installertestfooblah.phpt', - $temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR, - 'glomp' . DIRECTORY_SEPARATOR . 'fromp')); -echo "test valid rollbackFileTransaction():\n"; -$installer->rollbackFileTransaction(); -if (isset($installer->pkginfo['filelist'])) { - echo "filelist created\n"; -} else { - echo "filelist not created!\n"; -} -if (isset($installer->pkginfo['filelist']['test.php'])) { - echo "filelist test.php created\n"; -} else { - echo "filelist test.php not created!\n"; -} -if (isset($installer->pkginfo['filelist']['test.php']['installed_as'])) { - echo "filelist test.php installed_as created\n"; -} else { - echo "filelist test.php installed_as not created!\n"; -} -$p = $temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . - 'glomp' . DIRECTORY_SEPARATOR . 'fromp' . DIRECTORY_SEPARATOR - . 'installertestfooblah.phpt'; -if (@$installer->pkginfo['filelist']['test.php']['installed_as'] == $p) { - echo "filelist test.php installed_as is correct\n"; -} else { - echo "filelist test.php installed_as is not correct!\n"; -} -if (isset($installer->pkginfo['filelist']['dirtree'])) { - echo "filelist dirtree created\n"; -} else { - echo "filelist dirtree not created!\n"; -} -$p = $temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . - 'glomp'; -if (isset($installer->pkginfo['filelist']['dirtree'][$p])) { - echo "filelist dirtree glomp created\n"; -} else { - echo "filelist dirtree glomp not created!\n"; -} -$p .= DIRECTORY_SEPARATOR . 'fromp'; -if (isset($installer->pkginfo['filelist']['dirtree'][$p])) { - echo "filelist dirtree fromp created\n"; -} else { - echo "filelist dirtree fromp not created!\n"; -} - -// invalid tests -echo "\n==>Invalid tests\n"; -echo "Do valid addFileOperation() delete with non-existing file\n"; -$installer->addFileOperation('delete', array('gloober62456.phpt')); -echo 'count($installer->file_operations) = '; -var_dump(count($installer->file_operations)); - -echo "test invalid commitFileTransaction():\n"; -if ($installer->commitFileTransaction()) { - echo "worked\n"; -} else { - echo "didn't work!\n"; - $installer->rollbackFileTransaction(); -} - -echo "Do valid addFileOperation() rename with non-existing file\n"; -$installer->addFileOperation('rename', array('gloober62456.phpt', 'faber.com')); -echo 'count($installer->file_operations) = '; -var_dump(count($installer->file_operations)); - -echo "test invalid commitFileTransaction():\n"; -if ($installer->commitFileTransaction()) { - echo "worked\n"; -} else { - echo "didn't work!\n"; - $installer->rollbackFileTransaction(); -} - -echo "Do valid addFileOperation() chmod with non-existing file\n"; -$installer->addFileOperation('chmod', array(0640, 'faber.com')); -echo 'count($installer->file_operations) = '; -var_dump(count($installer->file_operations)); - -echo "test invalid commitFileTransaction():\n"; -if ($installer->commitFileTransaction()) { - echo "worked\n"; -} else { - echo "didn't work!\n"; - $installer->rollbackFileTransaction(); -} - -//cleanup -chdir($curdir); -unlink ($temp_path . DIRECTORY_SEPARATOR . 'pear.conf'); -unlink ($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -rmdir($temp_path . DIRECTORY_SEPARATOR . 'php'); -rmdir($temp_path . DIRECTORY_SEPARATOR . 'data'); -rmdir($temp_path . DIRECTORY_SEPARATOR . 'doc'); -rmdir($temp_path . DIRECTORY_SEPARATOR . 'test'); -rmdir($temp_path . DIRECTORY_SEPARATOR . 'script'); -rmdir($temp_path . DIRECTORY_SEPARATOR . 'ext'); -rmdir($temp_path . DIRECTORY_SEPARATOR . 'tmp'); -rmdir($temp_path . DIRECTORY_SEPARATOR . 'bin'); -rmdir($temp_path); -?> ---EXPECT-- -test addFileOperation(): -invalid input to addFileOperation(): -Returned PEAR_Error? yes -Internal Error: $data in addFileOperation must be an array, was integer -count($installer->file_operations) = int(0) -Do valid addFileOperation() delete -count($installer->file_operations) = int(1) -test valid commitFileTransaction(): -about to commit 1 file operations -successfully committed 1 file operations -worked -Do valid addFileOperation() rename -file renamed.phpt exists? no -test valid commitFileTransaction(): -about to commit 1 file operations -successfully committed 1 file operations -worked -file renamed.phpt exists? yes -Do valid addFileOperation() chmod -file permissions are: 776 -test valid commitFileTransaction(): -about to commit 1 file operations -successfully committed 1 file operations -worked -file permissions are: 640 -Do valid addFileOperation() rmdir -directory exists? yes -test valid commitFileTransaction(): -about to commit 1 file operations -successfully committed 1 file operations -worked -directory exists? no -Do valid addFileOperation() installed_as -test valid commitFileTransaction(): -about to commit 1 file operations -successfully committed 1 file operations -worked -filelist created -filelist test.php created -filelist test.php installed_as created -filelist test.php installed_as is correct -filelist dirtree created -filelist dirtree glomp created -filelist dirtree fromp created -Do valid addFileOperation() installed_as -test valid rollbackFileTransaction(): -rolling back 1 file operations -filelist created -filelist test.php created -filelist test.php installed_as not created! -filelist test.php installed_as is not correct! -filelist dirtree not created! -filelist dirtree glomp not created! -filelist dirtree fromp not created! - -==>Invalid tests -Do valid addFileOperation() delete with non-existing file -count($installer->file_operations) = int(1) -test invalid commitFileTransaction(): -about to commit 1 file operations -warning: file gloober62456.phpt doesn't exist, can't be deleted -successfully committed 1 file operations -worked -Do valid addFileOperation() rename with non-existing file -count($installer->file_operations) = int(1) -test invalid commitFileTransaction(): -about to commit 1 file operations -cannot rename file gloober62456.phpt, doesn't exist -didn't work! -rolling back 1 file operations -Do valid addFileOperation() chmod with non-existing file -count($installer->file_operations) = int(1) -test invalid commitFileTransaction(): -about to commit 1 file operations -permission denied (chmod): faber.com 640 -didn't work! -rolling back 1 file operations diff --git a/pear/tests/pear_installer4.phpt b/pear/tests/pear_installer4.phpt deleted file mode 100644 index 593d38ad45..0000000000 --- a/pear/tests/pear_installer4.phpt +++ /dev/null @@ -1,266 +0,0 @@ ---TEST-- -PEAR_Installer test #4: PEAR_Installer::install() ---SKIPIF-- - ---FILE-- - 'pear.php.net', - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', - 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', - 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', - 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', - 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test', - 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',)); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w'); -fwrite($fp, $config); -fclose($fp); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.ini', 'w'); -fwrite($fp, $config); -fclose($fp); - -putenv('PHP_PEAR_SYSCONF_DIR='.$temp_path); -$home = getenv('HOME'); -if (!empty($home)) { - // for PEAR_Config initialization - putenv('HOME="'.$temp_path); -} -require_once "PEAR/Installer.php"; - -// no UI is needed for these tests -$ui = false; -$installer = new PEAR_Installer($ui); -$curdir = getcwd(); -chdir(dirname(__FILE__)); - -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'catchit'); - -$error_to_catch = false; -function catchit($err) -{ - global $error_to_catch; - if ($error_to_catch) { - if ($err->getMessage() == $error_to_catch) { - $error_to_catch = false; - echo "Caught expected error\n"; - return; - } - } - echo "Caught error: " . $err->getMessage() . "\n"; -} - -echo "Test package.xml direct install:\n"; -$installer->install(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'package.xml'); -$reg = &new PEAR_Registry($temp_path . DIRECTORY_SEPARATOR . 'php'); -var_dump($reg->listPackages()); -echo "zoorb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'zoorb.php')) ? "yes\n" : "no\n"; -echo "goompness/Mopreeb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'Mopreeb.php')) ? "yes\n" : "no\n"; -echo "goompness/oggbrzitzkee.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'oggbrzitzkee.php')) ? "yes\n" : "no\n"; - -echo "Test conflicting files:\n"; -$installer->install(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'conflictpackage.xml'); - -echo "After uninstall:\n"; -$installer->uninstall('pkg6'); -var_dump($reg->listPackages()); -echo "zoorb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'zoorb.php')) ? "yes\n" : "no\n"; -echo "goompness/Mopreeb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'Mopreeb.php')) ? "yes\n" : "no\n"; -echo "goompness/oggbrzitzkee.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'oggbrzitzkee.php')) ? "yes\n" : "no\n"; -echo "goompness exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness')) - ? "yes\n" : "no\n"; - -echo "Test .tgz install:\n"; -$installer->install(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'pkg6-1.1.tgz'); -$reg = &new PEAR_Registry($temp_path . DIRECTORY_SEPARATOR . 'php'); -var_dump($reg->listPackages()); -echo "zoorb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'zoorb.php')) ? "yes\n" : "no\n"; -echo "goompness/Mopreeb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'Mopreeb.php')) ? "yes\n" : "no\n"; -echo "goompness/oggbrzitzkee.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'oggbrzitzkee.php')) ? "yes\n" : "no\n"; -echo "After uninstall:\n"; -$installer->uninstall('pkg6'); -var_dump($reg->listPackages()); -echo "zoorb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'zoorb.php')) ? "yes\n" : "no\n"; -echo "goompness/Mopreeb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'Mopreeb.php')) ? "yes\n" : "no\n"; -echo "goompness/oggbrzitzkee.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'oggbrzitzkee.php')) ? "yes\n" : "no\n"; -echo "goompness exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness')) - ? "yes\n" : "no\n"; - -echo "Test invalid .tgz install:\n"; -$error_to_catch = 'unable to unpack ' . dirname(__FILE__) . DIRECTORY_SEPARATOR . - 'test-pkg6' . DIRECTORY_SEPARATOR . 'invalidtgz.tgz'; -$installer->install(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'invalidtgz.tgz'); -$reg = &new PEAR_Registry($temp_path . DIRECTORY_SEPARATOR . 'php'); -var_dump($reg->listPackages()); -echo "zoorb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'zoorb.php')) ? "yes\n" : "no\n"; -echo "goompness/Mopreeb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'Mopreeb.php')) ? "yes\n" : "no\n"; -echo "goompness/oggbrzitzkee.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'oggbrzitzkee.php')) ? "yes\n" : "no\n"; - -echo "Test missing package.xml in .tgz install:\n"; -$installer->install(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'nopackagexml.tgz'); -$reg = &new PEAR_Registry($temp_path . DIRECTORY_SEPARATOR . 'php'); -var_dump($reg->listPackages()); -echo "zoorb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'zoorb.php')) ? "yes\n" : "no\n"; -echo "goompness/Mopreeb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'Mopreeb.php')) ? "yes\n" : "no\n"; -echo "goompness/oggbrzitzkee.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'oggbrzitzkee.php')) ? "yes\n" : "no\n"; - -chdir($curdir); -cleanall($temp_path); - -// ------------------------------------------------------------------------- // - -function cleanall($dir) -{ - $dp = opendir($dir); - while ($ent = readdir($dp)) { - if ($ent == '.' || $ent == '..') { - continue; - } - if (is_dir($dir . DIRECTORY_SEPARATOR . $ent)) { - cleanall($dir . DIRECTORY_SEPARATOR . $ent); - } else { - unlink($dir . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir($dir); -} -?> ---EXPECT-- -Test package.xml direct install: -array(1) { - [0]=> - string(4) "pkg6" -} -zoorb.php exists? yes -goompness/Mopreeb.php exists? yes -goompness/oggbrzitzkee.php exists? yes -Test conflicting files: -Caught error: pear::pkg6conflict: conflicting files found: -groob\goompness\oggbrzitzkee.php (pkg6) - groob\goompness\Mopreeb.php (pkg6) - -After uninstall: -array(0) { -} -zoorb.php exists? no -goompness/Mopreeb.php exists? no -goompness/oggbrzitzkee.php exists? no -goompness exists? no -Test .tgz install: -array(1) { - [0]=> - string(4) "pkg6" -} -zoorb.php exists? yes -goompness/Mopreeb.php exists? yes -goompness/oggbrzitzkee.php exists? yes -After uninstall: -array(0) { -} -zoorb.php exists? no -goompness/Mopreeb.php exists? no -goompness/oggbrzitzkee.php exists? no -goompness exists? no -Test invalid .tgz install: -Caught error: Invalid checksum for file " - ---FILE-- - 'pear.php.net', - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', - 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', - 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', - 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', - 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test', - 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',)); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w'); -fwrite($fp, $config); -fclose($fp); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.ini', 'w'); -fwrite($fp, $config); -fclose($fp); - -putenv('PHP_PEAR_SYSCONF_DIR='.$temp_path); -$home = getenv('HOME'); -if (!empty($home)) { - // for PEAR_Config initialization - putenv('HOME="'.$temp_path); -} -require_once "PEAR/Installer.php"; - -// no UI is needed for these tests -$ui = false; -$installer = new PEAR_Installer($ui); -$curdir = getcwd(); -chdir(dirname(__FILE__)); - -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'catchit'); - -$error_to_catch = false; -function catchit($err) -{ - global $error_to_catch; - if ($error_to_catch) { - if ($err->getMessage() == $error_to_catch) { - $error_to_catch = false; - echo "Caught expected error\n"; - return; - } - } - echo "Caught error: " . $err->getMessage() . "\n"; -} - -$installer->install(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'package.xml'); -$installer->install(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'package2.xml'); -$reg = &new PEAR_Registry($temp_path . DIRECTORY_SEPARATOR . 'php'); -var_dump($reg->listPackages()); -$info = $reg->packageInfo('pkg1'); -echo "pkg1 dir tree contains test/? "; -echo (isset($info['filelist']['dirtree'][$temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test'])) ? "yes\n" : "no\n"; -echo "pkg1 dir tree contains test/multiplepackages? "; -echo (isset($info['filelist']['dirtree'][$temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'multiplepackages'])) ? "yes\n" : "no\n"; -echo "pkg1 dir tree contains test/pkg1? "; -echo (isset($info['filelist']['dirtree'][$temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'pkg1'])) ? "yes\n" : "no\n"; - -$info = $reg->packageInfo('pkg2'); -echo "pkg2 dir tree contains test/? "; -echo (isset($info['filelist']['dirtree'][$temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test'])) ? "yes\n" : "no\n"; -echo "pkg2 dir tree contains test/multiplepackages? "; -echo (isset($info['filelist']['dirtree'][$temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'multiplepackages'])) ? "yes\n" : "no\n"; -echo "pkg2 dir tree contains test/nestedroot? "; -echo (isset($info['filelist']['dirtree'][$temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'nestedroot'])) ? "yes\n" : "no\n"; -echo "pkg2 dir tree contains test/nestedroot/emptydir? "; -echo (isset($info['filelist']['dirtree'][$temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'nestedroot' - . DIRECTORY_SEPARATOR . 'emptydir'])) ? "yes\n" : "no\n"; -echo "pkg2 dir tree contains test/nestedroot/emptydir/nesteddir? "; -echo (isset($info['filelist']['dirtree'][$temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'nestedroot' - . DIRECTORY_SEPARATOR . 'emptydir' . DIRECTORY_SEPARATOR . 'nesteddir'])) ? "yes\n" : "no\n"; - -echo "After uninstall of pkg1:\n"; -$installer->uninstall('pkg1'); -echo "test/ exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test')) ? "yes\n" : "no\n"; -echo "test/multiplepackages exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'multiplepackages')) ? "yes\n" : "no\n"; -echo "test/pkg1 exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'pkg1')) ? "yes\n" : "no\n"; -echo "test/nestedroot exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'nestedroot')) ? "yes\n" : "no\n"; -echo "test/nestedroot/emptydir exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'nestedroot' - . DIRECTORY_SEPARATOR . 'emptydir')) ? "yes\n" : "no\n"; -echo "test/nestedroot/emptydir/nesteddir exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'nestedroot' - . DIRECTORY_SEPARATOR . 'emptydir'. DIRECTORY_SEPARATOR . 'nesteddir')) ? "yes\n" : "no\n"; -var_dump($reg->listPackages()); - -echo "After uninstall of pkg2:\n"; -$installer->uninstall('pkg2'); -echo "test/ exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test')) ? "yes\n" : "no\n"; -echo "test/multiplepackages exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'multiplepackages')) ? "yes\n" : "no\n"; -echo "test/pkg1 exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'pkg1')) ? "yes\n" : "no\n"; -echo "test/nestedroot exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'nestedroot')) ? "yes\n" : "no\n"; -echo "test/nestedroot/emptydir exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'nestedroot' - . DIRECTORY_SEPARATOR . 'emptydir')) ? "yes\n" : "no\n"; -echo "test/nestedroot/emptydir/nesteddir exists? "; -echo (is_dir($temp_path . DIRECTORY_SEPARATOR . 'php' - . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'nestedroot' - . DIRECTORY_SEPARATOR . 'emptydir'. DIRECTORY_SEPARATOR . 'nesteddir')) ? "yes\n" : "no\n"; -var_dump($reg->listPackages()); - -chdir($curdir); -cleanall($temp_path); - -// ------------------------------------------------------------------------- // - -function cleanall($dir) -{ - $dp = opendir($dir); - while ($ent = readdir($dp)) { - if ($ent == '.' || $ent == '..') { - continue; - } - if (is_dir($dir . DIRECTORY_SEPARATOR . $ent)) { - cleanall($dir . DIRECTORY_SEPARATOR . $ent); - } else { - unlink($dir . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir($dir); -} -?> ---EXPECT-- -array(2) { - [0]=> - string(4) "pkg1" - [1]=> - string(4) "pkg2" -} -pkg1 dir tree contains test/? yes -pkg1 dir tree contains test/multiplepackages? yes -pkg1 dir tree contains test/pkg1? yes -pkg2 dir tree contains test/? yes -pkg2 dir tree contains test/multiplepackages? yes -pkg2 dir tree contains test/nestedroot? yes -pkg2 dir tree contains test/nestedroot/emptydir? yes -pkg2 dir tree contains test/nestedroot/emptydir/nesteddir? yes -After uninstall of pkg1: -test/ exists? yes -test/multiplepackages exists? yes -test/pkg1 exists? no -test/nestedroot exists? yes -test/nestedroot/emptydir exists? yes -test/nestedroot/emptydir/nesteddir exists? yes -array(1) { - [0]=> - string(4) "pkg2" -} -After uninstall of pkg2: -test/ exists? no -test/multiplepackages exists? no -test/pkg1 exists? no -test/nestedroot exists? no -test/nestedroot/emptydir exists? no -test/nestedroot/emptydir/nesteddir exists? no -array(0) { -} \ No newline at end of file diff --git a/pear/tests/pear_installer_installFile_channels.phpt b/pear/tests/pear_installer_installFile_channels.phpt deleted file mode 100644 index 376b3c5306..0000000000 --- a/pear/tests/pear_installer_installFile_channels.phpt +++ /dev/null @@ -1,447 +0,0 @@ ---TEST-- -PEAR_Installer test _installFile() with channels ---SKIPIF-- - ---FILE-- - 'pear.php.net', - 'default_channel' => 'pear', - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', - 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', - 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', - 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', - 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'tests', - 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin', - '__channels' => - array( - 'test' => array( - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'test', - 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext' . DIRECTORY_SEPARATOR . 'test', - 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'test', - 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc' . DIRECTORY_SEPARATOR . 'test', - 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'tests', - 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test', - ), - ))); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w'); -fwrite($fp, $config); -fclose($fp); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.ini', 'w'); -fwrite($fp, $config); -fclose($fp); - -putenv('PHP_PEAR_SYSCONF_DIR='.$temp_path); -$home = getenv('HOME'); -if (!empty($home)) { - // for PEAR_Config initialization - putenv('HOME="'.$temp_path); -} -require_once 'PEAR/Config.php'; -$config = &PEAR_Config::singleton($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -require_once 'PEAR/Registry.php'; -$reg = &new PEAR_Registry($config->get('php_dir', null, 'pear')); -require_once 'PEAR/ChannelFile.php'; -$chan = new PEAR_ChannelFile; -$chan->setName('test'); -$chan->setServer('test'); -$chan->setSummary('test'); -$reg->addChannel($chan); -require_once "PEAR/Installer.php"; - -// no UI is needed for these tests -$ui = false; -$installer = new PEAR_Installer($ui); -$curdir = getcwd(); -chdir(dirname(__FILE__)); - -echo "test _installFile():\n"; -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'installer2.phpt.testfile.php', 'w'); -fwrite($fp, 'a'); -fclose($fp); -// pretend we just parsed a package.xml -$installer->pkginfo = array('package' => 'Foo', 'channel' => 'test'); - -echo "install as role=\"php\":\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'php'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file php/test/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'test' . - DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "install as role=\"ext\":\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'ext'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file ext/test/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'ext' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "install as role=\"data\":\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'data'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file data/test/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - 'Foo' . DIRECTORY_SEPARATOR . '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "install as role=\"doc\":\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'doc'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file doc/test/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'doc' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - 'Foo' . DIRECTORY_SEPARATOR . '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "install as role=\"test\":\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'test'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file test/tests/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'tests' - . DIRECTORY_SEPARATOR . - 'Foo' . DIRECTORY_SEPARATOR . '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "install as role=\"script\":\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file bin/test/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -$installer->rollbackFileTransaction(); - -echo "install as invalid role=\"klingon\":\n"; -$err = $installer->_installFile('installer2.phpt.testfile.php', array('role' => 'klingon'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array()); -echo 'returned PEAR_Error: ' . (get_class($err) == 'pear_error' ? "yes\n" : "no\n"); -if (is_object($err)) { - echo 'message: ' . $err->getMessage() . "\n\n"; -} -echo 'file bin/test/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "install non-existent file:\n"; -$err = $installer->_installFile('....php', array('role' => 'php'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array()); -echo 'returned PEAR_Error: ' . (get_class($err) == 'pear_error' ? "yes\n" : "no\n"); -if (is_object($err)) { - echo 'message: ' . $err->getMessage() . "\n"; -} -echo 'file php/test/.tmp....php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmp....php') ? "yes\n" : "no\n"); - -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'installer2.phpt.testfile.php', 'w'); -fwrite($fp, '@TEST@ stuff'); -fclose($fp); - -echo "\ntest valid md5sum:\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', 'md5sum' => md5('@TEST@ stuff')), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo 'file bin/test/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -$installer->rollbackFileTransaction(); - -echo "test invalid md5sum:\n"; -$err = $installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', 'md5sum' => md5('oops stuff')), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array()); -echo 'returned PEAR_Error: ' . (get_class($err) == 'pear_error' ? "yes\n" : "no\n"); -if (is_object($err)) { - echo 'message: ' . ($err->getMessage() == 'bad md5sum for file ' . $temp_path . DIRECTORY_SEPARATOR . 'bin' . - DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . 'installer2.phpt.testfile.php' ? 'match' : 'no match') . "\n"; -} -echo 'file bin/test/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -echo "test invalid md5sum with --force:\n"; -ob_start(); -$err = $installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', 'md5sum' => md5('oops stuff')), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array('force' => true)); -$warning = ob_get_contents(); -ob_end_clean(); -echo 'warning : '; -echo ($warning == 'warning : bad md5sum for file ' . $temp_path . DIRECTORY_SEPARATOR . 'bin' . - DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . "installer2.phpt.testfile.php\n" ? "match\n" : "no match\n"); -echo 'returned PEAR_Error: ' . (get_class($err) == 'pear_error' ? "yes\n" : "no\n"); -if (is_object($err)) { - echo 'message: ' . ($err->getMessage() == 'bad md5sum for file ' . $temp_path . DIRECTORY_SEPARATOR . 'bin' . - DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . 'installer2.phpt.testfile.php' ? 'match' : 'no match') . "\n"; -} -echo 'file bin/test/.tmpinstaller2.phpt.testfile.php exists? => '; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php') ? "yes\n" : "no\n"); - -define('PEARINSTALLERTEST2_FAKE_FOO_CONST', 'good'); -echo "\ntest replacements:\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'replacements' => array(array('type' => 'php-const', 'from' => '@TEST@', 'to' => 'PEARINSTALLERTEST2_FAKE_FOO_CONST'))), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo "==>test php-const replacement: equals 'good stuff'? => "; -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php')) -{ - $a = implode(file($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php'), ''); - echo "$a\n"; -} else { - echo "no! file installation failed\n"; -} -$installer->rollbackFileTransaction(); - -echo "==>test invalid php-const replacement:\n"; -$err = $installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'replacements' => array(array('type' => 'php-const', 'from' => '@TEST@', 'to' => '%PEARINSTALLERTEST2_FAKE_FOO_CONST'))), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array()); -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php')) -{ - $a = implode(file($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php'), ''); - echo "$a\n"; -} else { - echo "no! file installation failed\n"; -} - -$installer->rollbackFileTransaction(); - -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'replacements' => array(array('type' => 'pear-config', 'from' => '@TEST@', 'to' => 'master_server'))), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo "==>test pear-config replacement: equals 'test stuff'? => "; -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php')) -{ - $a = implode(file($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php'), ''); - echo "$a\n"; -} else { - echo "no! file installation failed\n"; -} -$installer->rollbackFileTransaction(); - -echo "==>test invalid pear-config replacement\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'replacements' => array(array('type' => 'pear-config', 'from' => '@TEST@', 'to' => 'blahblahblah'))), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php')) -{ - $a = implode(file($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php'), ''); - echo "$a\n"; -} else { - echo "no! file installation failed\n"; -} -$installer->rollbackFileTransaction(); - -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'replacements' => array(array('type' => 'package-info', 'from' => '@TEST@', 'to' => 'package'))), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo "==>test package-info replacement: equals 'Foo stuff'? => "; -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php')) -{ - $a = implode(file($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php'), ''); - echo "$a\n"; -} else { - echo "no! file installation failed\n"; -} -$installer->rollbackFileTransaction(); - -echo "==>test invalid package-info replacement:\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'replacements' => array(array('type' => 'package-info', 'from' => '@TEST@', 'to' => 'gronk'))), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php')) -{ - $a = implode(file($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpinstaller2.phpt.testfile.php'), ''); - echo "$a\n"; -} else { - echo "no! file installation failed\n"; -} -$installer->rollbackFileTransaction(); - -echo "\ntest install-as:\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'install-as' => 'foobar.php'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo "==>test install as 'foobar.php'. file exists? "; -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - '.tmpfoobar.php')) -{ - echo "yes\n"; -} else { - echo "no\n"; -} -$installer->rollbackFileTransaction(); - -echo "\ntest baseinstalldir:\n"; -var_dump($installer->_installFile('installer2.phpt.testfile.php', array('role' => 'script', - 'baseinstalldir' => 'Foo/Mine'), - $temp_path . DIRECTORY_SEPARATOR . 'tmp', array())); -echo "==>test baseinstalldir = 'Foo/Mine'. file exists? "; -if (file_exists($temp_path . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'test' - . DIRECTORY_SEPARATOR . - 'Foo' . DIRECTORY_SEPARATOR . 'Mine' . DIRECTORY_SEPARATOR . '.tmpinstaller2.phpt.testfile.php')) -{ - echo "yes\n"; -} else { - echo "no\n"; -} -$installer->rollbackFileTransaction(); - -//cleanup -chdir($curdir); -cleanall($temp_path); -function cleanall($dir) -{ - $dp = opendir($dir); - while ($ent = readdir($dp)) { - if ($ent == '.' || $ent == '..') { - continue; - } - if (is_dir($dir . DIRECTORY_SEPARATOR . $ent)) { - cleanall($dir . DIRECTORY_SEPARATOR . $ent); - } else { - unlink($dir . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir($dir); -} -?> ---GET-- ---POST-- ---EXPECT-- -test _installFile(): -install as role="php": -int(1) -file php/test/.tmpinstaller2.phpt.testfile.php exists? => yes -install as role="ext": -int(1) -file ext/test/.tmpinstaller2.phpt.testfile.php exists? => yes -install as role="data": -int(1) -file data/test/.tmpinstaller2.phpt.testfile.php exists? => yes -install as role="doc": -int(1) -file doc/test/.tmpinstaller2.phpt.testfile.php exists? => yes -install as role="test": -int(1) -file test/tests/.tmpinstaller2.phpt.testfile.php exists? => yes -install as role="script": -int(1) -file bin/test/.tmpinstaller2.phpt.testfile.php exists? => yes -install as invalid role="klingon": -returned PEAR_Error: yes -message: Invalid role `klingon' for file installer2.phpt.testfile.php - -file bin/test/.tmpinstaller2.phpt.testfile.php exists? => no -install non-existent file: -returned PEAR_Error: yes -message: file does not exist -file php/test/.tmp....php exists? => no - -test valid md5sum: -int(1) -file bin/test/.tmpinstaller2.phpt.testfile.php exists? => yes -test invalid md5sum: -returned PEAR_Error: yes -message: match -file bin/test/.tmpinstaller2.phpt.testfile.php exists? => no -test invalid md5sum with --force: -warning : match -returned PEAR_Error: no -file bin/test/.tmpinstaller2.phpt.testfile.php exists? => yes - -test replacements: -int(1) -==>test php-const replacement: equals 'good stuff'? => good stuff -==>test invalid php-const replacement: -invalid php-const replacement: %PEARINSTALLERTEST2_FAKE_FOO_CONST -@TEST@ stuff -int(1) -==>test pear-config replacement: equals 'test stuff'? => test stuff -==>test invalid pear-config replacement -invalid pear-config replacement: blahblahblah -int(1) -@TEST@ stuff -int(1) -==>test package-info replacement: equals 'Foo stuff'? => Foo stuff -==>test invalid package-info replacement: -invalid package-info replacement: gronk -int(1) -@TEST@ stuff - -test install-as: -int(1) -==>test install as 'foobar.php'. file exists? yes - -test baseinstalldir: -int(1) -==>test baseinstalldir = 'Foo/Mine'. file exists? yes - diff --git a/pear/tests/pear_installer_install_channels.phpt b/pear/tests/pear_installer_install_channels.phpt deleted file mode 100644 index d4c3418d0d..0000000000 --- a/pear/tests/pear_installer_install_channels.phpt +++ /dev/null @@ -1,214 +0,0 @@ ---TEST-- -PEAR_Installer test #4: PEAR_Installer::install() with channels ---SKIPIF-- - ---FILE-- - 'pear.php.net', - 'default_channel' => 'pear', - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', - 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', - 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', - 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', - 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test', - 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin', - '__channels' => array( - 'frob' => array( - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'frob', - )))); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w'); -fwrite($fp, $config); -fclose($fp); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.ini', 'w'); -fwrite($fp, $config); -fclose($fp); - -putenv('PHP_PEAR_SYSCONF_DIR='.$temp_path); -$home = getenv('HOME'); -if (!empty($home)) { - // for PEAR_Config initialization - putenv('HOME="'.$temp_path); -} -require_once 'PEAR/ChannelFile.php'; -require_once 'PEAR/Registry.php'; -$reg = &new PEAR_Registry($temp_path . DIRECTORY_SEPARATOR . 'php'); -$chan = new PEAR_ChannelFile; -$chan->setName('frob'); -$chan->setSummary('test'); -$chan->setServer('test'); -$reg->addChannel($chan); -$chan->setName('groob'); -$reg->addChannel($chan); -require_once "PEAR/Installer.php"; - -// no UI is needed for these tests -$ui = false; -$installer = new PEAR_Installer($ui); -$curdir = getcwd(); -chdir(dirname(__FILE__)); - -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'catchit'); - -$error_to_catch = false; -function catchit($err) -{ - global $error_to_catch; - if ($error_to_catch) { - if ($err->getMessage() == $error_to_catch) { - $error_to_catch = false; - echo "Caught expected error\n"; - return; - } - } - echo "Caught error: " . $err->getMessage() . "\n"; -} - -echo "Test package.xml direct install:\n"; -$installer->install(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'package2.xml'); -$reg = &new PEAR_Registry($temp_path . DIRECTORY_SEPARATOR . 'php'); -var_dump($reg->listAllPackages()); -echo "zoorb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'frob' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'zoorb.php')) ? "yes\n" : "no\n"; -echo "goompness/Mopreeb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'frob' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'Mopreeb.php')) ? "yes\n" : "no\n"; -echo "goompness/oggbrzitzkee.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'frob' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'oggbrzitzkee.php')) ? "yes\n" : "no\n"; -echo "goompness/test.dat exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'pkg6' - . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'test.dat')) ? "yes\n" : "no\n"; - -echo "Test conflicting files:\n"; -$installer->install(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'conflictpackage2.xml'); - -echo "Test unknown channel:\n"; -$installer->install(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test-pkg6' . DIRECTORY_SEPARATOR . 'package2_invalid.xml'); - -echo "After uninstall:\n"; -$installer->uninstall('frob::pkg6'); -var_dump($reg->listAllPackages()); -echo "zoorb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'frob' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'zoorb.php')) ? "yes\n" : "no\n"; -echo "goompness/Mopreeb.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'frob' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'Mopreeb.php')) ? "yes\n" : "no\n"; -echo "goompness/oggbrzitzkee.php exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'frob' - . DIRECTORY_SEPARATOR . 'groob' . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'oggbrzitzkee.php')) ? "yes\n" : "no\n"; -echo "goompness/test.dat exists? "; -echo (file_exists($temp_path . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'pkg6' - . DIRECTORY_SEPARATOR . 'goompness' - . DIRECTORY_SEPARATOR . 'test.dat')) ? "yes\n" : "no\n"; - -chdir($curdir); -cleanall($temp_path); - -// ------------------------------------------------------------------------- // - -function cleanall($dir) -{ - $dp = opendir($dir); - while ($ent = readdir($dp)) { - if ($ent == '.' || $ent == '..') { - continue; - } - if (is_dir($dir . DIRECTORY_SEPARATOR . $ent)) { - cleanall($dir . DIRECTORY_SEPARATOR . $ent); - } else { - unlink($dir . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir($dir); -} -?> ---GET-- ---POST-- ---EXPECT-- -Test package.xml direct install: -array(3) { - ["frob"]=> - array(1) { - [0]=> - string(4) "pkg6" - } - ["groob"]=> - array(0) { - } - ["pear"]=> - array(0) { - } -} -zoorb.php exists? yes -goompness/Mopreeb.php exists? yes -goompness/oggbrzitzkee.php exists? yes -goompness/test.dat exists? yes -Test conflicting files: -Caught error: groob::pkg6conflict: conflicting files found: -groob\goompness\oggbrzitzkee.php (frob::pkg6) - groob\goompness\Mopreeb.php (frob::pkg6) - groob\goompness\test.dat (frob::pkg6) - -Test unknown channel: -Error: Unknown channel, "gorp" -Caught error: Installation failed: invalid package file, use option force to install anyway -After uninstall: -array(3) { - ["frob"]=> - array(0) { - } - ["groob"]=> - array(0) { - } - ["pear"]=> - array(0) { - } -} -zoorb.php exists? no -goompness/Mopreeb.php exists? no -goompness/oggbrzitzkee.php exists? no -goompness/test.dat exists? no diff --git a/pear/tests/pear_packager.phpt b/pear/tests/pear_packager.phpt deleted file mode 100644 index 141fae06d4..0000000000 --- a/pear/tests/pear_packager.phpt +++ /dev/null @@ -1,396 +0,0 @@ ---TEST-- -PEAR_Packager test ---SKIPIF-- - ---FILE-- - 'pear.php.net', - 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', - 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', - 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', - 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', - 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test', - 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',)); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w'); -fwrite($fp, $config); -fclose($fp); -touch($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.ini', 'w'); -fwrite($fp, $config); -fclose($fp); - -putenv('PHP_PEAR_SYSCONF_DIR='.$temp_path); -$home = getenv('HOME'); -if (!empty($home)) { - // for PEAR_Config initialization - putenv('HOME="'.$temp_path); -} -require_once "PEAR/Packager.php"; -require_once 'PEAR/Registry.php'; -$reg = &new PEAR_Registry($temp_path . DIRECTORY_SEPARATOR . 'php'); -$packager = new PEAR_Packager(); -$packager->setRegistry($reg); -$curdir = getcwd(); -chdir(dirname(__FILE__)); - -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'catchit'); - -$error_to_catch = false; -function catchit($err) -{ - global $error_to_catch; - if ($error_to_catch) { - if ($err->getMessage() == $error_to_catch) { - $error_to_catch = false; - echo "Caught expected error\n"; - return; - } - } - echo "Caught error: " . $err->getMessage() . "\n"; -} -ob_start(); -if (!file_exists(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'CVS')) { - mkdir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'CVS'); - touch(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'CVS' . DIRECTORY_SEPARATOR . 'Root'); -} -$packager->package(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'package.xml'); -$packager->package(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'package2.xml'); -$stuff = str_replace(array(dirname(__FILE__) . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR), array('', '/'), - ob_get_contents()); -ob_end_clean(); -echo $stuff; - -$archive1 = &new Archive_Tar(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg1-1.0.tgz'); -$archive1c = &new Archive_Tar(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . - DIRECTORY_SEPARATOR . 'pkg1-1.0.tgz'); -$x1 = $archive1->listContent(); -$x2 = $archive1c->listContent(); -for($i=0;$ilistContent(); -$x2 = $archive1c->listContent(); -for($i=0;$ipackage(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'package-fail.xml'); - -unlink(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg1-1.0.tgz'); -unlink(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg2-1.0.tgz'); -chdir($curdir); -cleanall($temp_path); - -// ------------------------------------------------------------------------- // - -function cleanall($dir) -{ - $dp = opendir($dir); - while ($ent = readdir($dp)) { - if ($ent == '.' || $ent == '..') { - continue; - } - if (is_dir($dir . DIRECTORY_SEPARATOR . $ent)) { - cleanall($dir . DIRECTORY_SEPARATOR . $ent); - } else { - unlink($dir . DIRECTORY_SEPARATOR . $ent); - } - } - closedir($dp); - rmdir($dir); -} -?> ---EXPECT-- -Analyzing multiplepackages/pkg1file.php -Analyzing pkg1/randomfile.php -Package pkg1-1.0.tgz done -Tag the released code with `pear cvstag package.xml' -(or set the CVS tag RELEASE_1_0 by hand) -Analyzing multiplepackages/pkg2file.php -Analyzing nestedroot/rootfile.php -Analyzing nestedroot/emptydir/nesteddir/nestedfile.php -Package pkg2-1.0.tgz done -Tag the released code with `pear cvstag package2.xml' -(or set the CVS tag RELEASE_1_0 by hand) -array(3) { - [0]=> - array(6) { - ["filename"]=> - string(11) "package.xml" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(817) - ["typeflag"]=> - string(0) "" - } - [1]=> - array(6) { - ["filename"]=> - string(38) "pkg1-1.0/multiplepackages/pkg1file.php" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(0) - ["typeflag"]=> - string(0) "" - } - [2]=> - array(6) { - ["filename"]=> - string(28) "pkg1-1.0/pkg1/randomfile.php" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(0) - ["typeflag"]=> - string(0) "" - } -} -array(3) { - [0]=> - array(6) { - ["filename"]=> - string(11) "package.xml" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(817) - ["typeflag"]=> - string(0) "" - } - [1]=> - array(6) { - ["filename"]=> - string(38) "pkg1-1.0/multiplepackages/pkg1file.php" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(0) - ["typeflag"]=> - string(0) "" - } - [2]=> - array(6) { - ["filename"]=> - string(28) "pkg1-1.0/pkg1/randomfile.php" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(0) - ["typeflag"]=> - string(0) "" - } -} -array(4) { - [0]=> - array(6) { - ["filename"]=> - string(11) "package.xml" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(921) - ["typeflag"]=> - string(0) "" - } - [1]=> - array(6) { - ["filename"]=> - string(38) "pkg2-1.0/multiplepackages/pkg2file.php" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(0) - ["typeflag"]=> - string(0) "" - } - [2]=> - array(6) { - ["filename"]=> - string(32) "pkg2-1.0/nestedroot/rootfile.php" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(0) - ["typeflag"]=> - string(0) "" - } - [3]=> - array(6) { - ["filename"]=> - string(53) "pkg2-1.0/nestedroot/emptydir/nesteddir/nestedfile.php" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(0) - ["typeflag"]=> - string(0) "" - } -} -array(4) { - [0]=> - array(6) { - ["filename"]=> - string(11) "package.xml" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(921) - ["typeflag"]=> - string(0) "" - } - [1]=> - array(6) { - ["filename"]=> - string(38) "pkg2-1.0/multiplepackages/pkg2file.php" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(0) - ["typeflag"]=> - string(0) "" - } - [2]=> - array(6) { - ["filename"]=> - string(32) "pkg2-1.0/nestedroot/rootfile.php" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(0) - ["typeflag"]=> - string(0) "" - } - [3]=> - array(6) { - ["filename"]=> - string(53) "pkg2-1.0/nestedroot/emptydir/nesteddir/nestedfile.php" - ["mode"]=> - int(33206) - ["uid"]=> - int(0) - ["gid"]=> - int(0) - ["size"]=> - int(0) - ["typeflag"]=> - string(0) "" - } -} -test failure: -Analyzing multiplepackages\pkg2file.php -Analyzing nestedroot\rootfile.php -Analyzing nestedroot\emptydir\nesteddir\nestedfile.php -Analyzing nestedroot\emptydir\nesteddir\doesntexist.php -Caught error: File does not exist: nestedroot\emptydir\nesteddir\doesntexist.php \ No newline at end of file diff --git a/pear/tests/pear_registry.phpt b/pear/tests/pear_registry.phpt deleted file mode 100644 index 3eeed76408..0000000000 --- a/pear/tests/pear_registry.phpt +++ /dev/null @@ -1,141 +0,0 @@ ---TEST-- -PEAR_Registry ---SKIPIF-- - ---FILE-- - array( - "role" => "php", - ), - "pkg1-2.php" => array( - "role" => "php", - "baseinstalldir" => "pkg1", - ), - ); -$files2 = array( - "pkg2-1.php" => array( - "role" => "php", - ), - "pkg2-2.php" => array( - "role" => "php", - "baseinstalldir" => "pkg2", - ), - ); -$files3 = array( - "pkg3-1.php" => array( - "role" => "php", - ), - "pkg3-2.php" => array( - "role" => "php", - "baseinstalldir" => "pkg3", - ), - ); -$files3_new = array( - "pkg3-3.php" => array( - "role" => "php", - "baseinstalldir" => "pkg3", - ), - "pkg3-4.php" => array( - "role" => "php", - ), - ); - -print "creating registry object\n"; -$reg = new PEAR_Registry($statedir); -dumpall($reg); - -$reg->addPackage("pkg1", array("name" => "pkg1", "version" => "1.0", "filelist" => $files1)); -dumpall($reg); - -$reg->addPackage("pkg2", array("name" => "pkg2", "version" => "2.0", "filelist" => $files2)); -$reg->addPackage("pkg3", array("name" => "pkg3", "version" => "3.0", "filelist" => $files3)); -dumpall($reg); - -$reg->updatePackage("pkg2", array("version" => "2.1")); -dumpall($reg); - -var_dump($reg->deletePackage("pkg2")); -dumpall($reg); - -var_dump($reg->deletePackage("pkg2")); -dumpall($reg); - -$reg->updatePackage("pkg3", array("version" => "3.1b1", "status" => "beta")); -dumpall($reg); - -$testing = $reg->checkFilemap(array_merge($files3, $files2)); -$ok = ($testing == array('pkg3-1.php' => 'pkg3', 'pkg3' . DIRECTORY_SEPARATOR . 'pkg3-2.php' => 'pkg3')); -echo 'filemap OK? ' . ($ok ? "yes\n" : "no\n"); -if (!$ok) { - var_dump($testing); -} - -$reg->updatePackage("pkg3", array("filelist" => $files3_new)); -dumpall($reg); - -print "tests done\n"; -?> ---EXPECT-- -creating registry object -dumping registry... -channel pear: -dump done -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -dump done -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg2: version="2.0" filelist=array(pkg2-1.php[role=php],pkg2-2.php[role=php,baseinstalldir=pkg2]) -pkg3: version="3.0" filelist=array(pkg3-1.php[role=php],pkg3-2.php[role=php,baseinstalldir=pkg3]) -dump done -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg2: version="2.1" filelist=array(pkg2-1.php[role=php],pkg2-2.php[role=php,baseinstalldir=pkg2]) -pkg3: version="3.0" filelist=array(pkg3-1.php[role=php],pkg3-2.php[role=php,baseinstalldir=pkg3]) -dump done -bool(true) -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.0" filelist=array(pkg3-1.php[role=php],pkg3-2.php[role=php,baseinstalldir=pkg3]) -dump done -bool(false) -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.0" filelist=array(pkg3-1.php[role=php],pkg3-2.php[role=php,baseinstalldir=pkg3]) -dump done -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.1b1" filelist=array(pkg3-1.php[role=php],pkg3-2.php[role=php,baseinstalldir=pkg3]) status="beta" -dump done -filemap OK? yes -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.1b1" filelist=array(pkg3-3.php[role=php,baseinstalldir=pkg3],pkg3-4.php[role=php]) status="beta" -dump done -tests done diff --git a/pear/tests/pear_registry_1.1.phpt b/pear/tests/pear_registry_1.1.phpt deleted file mode 100644 index f82478b4f6..0000000000 --- a/pear/tests/pear_registry_1.1.phpt +++ /dev/null @@ -1,292 +0,0 @@ ---TEST-- -PEAR_Registry v1.1 ---SKIPIF-- - ---FILE-- - array( - "role" => "php", - ), - "pkg1-2.php" => array( - "role" => "php", - "baseinstalldir" => "pkg1", - ), - ); -$files1_test = array( - "pkg12-1.php" => array( - "role" => "php", - ), - "pkg12-2.php" => array( - "role" => "php", - "baseinstalldir" => "pkg1", - ), - ); -$files1_grnok = array( - "pkg32-1.php" => array( - "role" => "php", - ), - "pkg32-2.php" => array( - "role" => "php", - "baseinstalldir" => "pkg1", - ), - ); -$files2 = array( - "pkg2-1.php" => array( - "role" => "php", - ), - "pkg2-2.php" => array( - "role" => "php", - "baseinstalldir" => "pkg2", - ), - ); -$files3 = array( - "pkg3-1.php" => array( - "role" => "php", - ), - "pkg3-2.php" => array( - "role" => "php", - "baseinstalldir" => "pkg3", - ), - ); -$files3_new = array( - "pkg3-3.php" => array( - "role" => "php", - "baseinstalldir" => "pkg3", - ), - "pkg3-4.php" => array( - "role" => "php", - ), - ); - -print "creating registry object\n"; -$reg = new PEAR_Registry($statedir); -dumpall($reg); - -$reg->addPackage("pkg1", array("name" => "pkg1", "version" => "1.0", "filelist" => $files1)); -dumpall($reg); - -$reg->addPackage("pkg2", array("name" => "pkg2", "version" => "2.0", "filelist" => $files2)); -$reg->addPackage("pkg3", array("name" => "pkg3", "version" => "3.0", "filelist" => $files3)); -dumpall($reg); - -$reg->updatePackage("pkg2", array("version" => "2.1")); -dumpall($reg); - -var_dump($reg->deletePackage("pkg2")); -dumpall($reg); - -var_dump($reg->deletePackage("pkg2")); -dumpall($reg); - -$reg->updatePackage("pkg3", array("version" => "3.1b1", "status" => "beta")); -dumpall($reg); - -$testing = $reg->checkFilemap(array_merge($files3, $files2)); -$ok = ($testing == array('pkg3-1.php' => 'pkg3', 'pkg3' . DIRECTORY_SEPARATOR . 'pkg3-2.php' => 'pkg3')); -echo 'filemap OK? ' . ($ok ? "yes\n" : "no\n"); -if (!$ok) { - var_dump($testing); -} - -$reg->updatePackage("pkg3", array("filelist" => $files3_new)); -dumpall($reg); - -echo "testing channel registry\n\n"; - -print "test add channel\n"; - -require_once 'PEAR/ChannelFile.php'; -$chan = new PEAR_ChannelFile; - -$chan->setName('test'); -$chan->setServer('pear.php.net'); -$chan->setSummary('hello'); -$reg->addChannel($chan); - -dumpall($reg); - -echo "test add bad channel\n"; -$chan = new PEAR_ChannelFile; - -$chan->setServer('pear.php.net'); -$chan->setSummary('hello'); -$reg->addChannel($chan); - -dumpall($reg); - -print "test add good package\n"; -$reg->addPackage('pkg1', array('name' => 'pkg1', 'version' => '1.0', 'filelist' => $files1_test), 'test'); - -dumpall($reg); - -echo "test add package with unknown channel\n"; - -var_dump($reg->addPackage('pkg2', array('name'=> 'pkg2', 'version' => '1.0', 'filelist' => $files1_grnok), 'grnok')); - -dumpall($reg); - -echo "test channel exists\n"; - -var_dump($reg->channelExists('test')); -var_dump($reg->channelExists('pear')); -var_dump($reg->channelExists('grnok')); - -echo "testing restart with new object\n"; - -unset($reg); - -$reg = &new PEAR_Registry($statedir); - -dumpall($reg); - -echo "test delete channel with packages\n"; -var_dump($reg->deleteChannel('test')); - -dumpall($reg); - -echo "test delete channel with no packages\n"; -$reg->deletePackage('pkg1', 'test'); - -var_dump($reg->deleteChannel('test')); - -dumpall($reg); - -print "tests done\n"; -?> ---EXPECT-- -creating registry object -dumping registry... -channel pear: -dump done -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -dump done -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg2: version="2.0" filelist=array(pkg2-1.php[role=php],pkg2-2.php[role=php,baseinstalldir=pkg2]) -pkg3: version="3.0" filelist=array(pkg3-1.php[role=php],pkg3-2.php[role=php,baseinstalldir=pkg3]) -dump done -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg2: version="2.1" filelist=array(pkg2-1.php[role=php],pkg2-2.php[role=php,baseinstalldir=pkg2]) -pkg3: version="3.0" filelist=array(pkg3-1.php[role=php],pkg3-2.php[role=php,baseinstalldir=pkg3]) -dump done -bool(true) -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.0" filelist=array(pkg3-1.php[role=php],pkg3-2.php[role=php,baseinstalldir=pkg3]) -dump done -bool(false) -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.0" filelist=array(pkg3-1.php[role=php],pkg3-2.php[role=php,baseinstalldir=pkg3]) -dump done -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.1b1" filelist=array(pkg3-1.php[role=php],pkg3-2.php[role=php,baseinstalldir=pkg3]) status="beta" -dump done -filemap OK? yes -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.1b1" filelist=array(pkg3-3.php[role=php,baseinstalldir=pkg3],pkg3-4.php[role=php]) status="beta" -dump done -testing channel registry - -test add channel -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.1b1" filelist=array(pkg3-3.php[role=php,baseinstalldir=pkg3],pkg3-4.php[role=php]) status="beta" -channel test: -dump done -test add bad channel -caught ErrorStack error: -message: Missing channel name -code: 6 -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.1b1" filelist=array(pkg3-3.php[role=php,baseinstalldir=pkg3],pkg3-4.php[role=php]) status="beta" -channel test: -dump done -test add good package -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.1b1" filelist=array(pkg3-3.php[role=php,baseinstalldir=pkg3],pkg3-4.php[role=php]) status="beta" -channel test: -pkg1: version="1.0" filelist=array(pkg12-1.php[role=php],pkg12-2.php[role=php,baseinstalldir=pkg1]) -dump done -test add package with unknown channel -bool(false) -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.1b1" filelist=array(pkg3-3.php[role=php,baseinstalldir=pkg3],pkg3-4.php[role=php]) status="beta" -channel test: -pkg1: version="1.0" filelist=array(pkg12-1.php[role=php],pkg12-2.php[role=php,baseinstalldir=pkg1]) -dump done -test channel exists -bool(true) -bool(true) -bool(false) -testing restart with new object -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.1b1" filelist=array(pkg3-3.php[role=php,baseinstalldir=pkg3],pkg3-4.php[role=php]) status="beta" -channel test: -pkg1: version="1.0" filelist=array(pkg12-1.php[role=php],pkg12-2.php[role=php,baseinstalldir=pkg1]) -dump done -test delete channel with packages -bool(false) -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.1b1" filelist=array(pkg3-3.php[role=php,baseinstalldir=pkg3],pkg3-4.php[role=php]) status="beta" -channel test: -pkg1: version="1.0" filelist=array(pkg12-1.php[role=php],pkg12-2.php[role=php,baseinstalldir=pkg1]) -dump done -test delete channel with no packages -bool(true) -dumping registry... -channel pear: -pkg1: version="1.0" filelist=array(pkg1-1.php[role=php],pkg1-2.php[role=php,baseinstalldir=pkg1]) -pkg3: version="3.1b1" filelist=array(pkg3-3.php[role=php,baseinstalldir=pkg3],pkg3-4.php[role=php]) status="beta" -dump done -tests done diff --git a/pear/tests/pear_registry_inc.php.inc b/pear/tests/pear_registry_inc.php.inc deleted file mode 100644 index 7cc395f081..0000000000 --- a/pear/tests/pear_registry_inc.php.inc +++ /dev/null @@ -1,74 +0,0 @@ -allPackageInfo(); - foreach ($infos as $channel => $info) { - echo "channel $channel:\n"; - foreach ($info as $pkg) { - print $pkg["name"] . ":"; - unset($pkg["name"]); - foreach ($pkg as $k => $v) { - if ($k == '_lastmodified') continue; - if (is_array($v) && $k == 'filelist') { - print " $k=array("; - $i = 0; - foreach ($v as $k2 => $v2) { - if ($i++ > 0) print ","; - print "{$k2}["; - $j = 0; - foreach ($v2 as $k3 => $v3) { - if ($j++ > 0) print ","; - print "$k3=$v3"; - } - print "]"; - } - print ")"; - } else { - print " $k=\"$v\""; - } - } - print "\n"; - } - } - print "dump done\n"; -} - -require_once 'PEAR/ErrorStack.php'; -function dump_error($err) -{ - echo "caught ErrorStack error:\n"; - echo "message: ". $err['message'] . "\n"; - echo "code: ". $err['code'] . "\n"; -} -PEAR_ErrorStack::setDefaultCallback('dump_error'); -register_shutdown_function('cleanall'); -?> \ No newline at end of file diff --git a/pear/tests/pear_system.phpt b/pear/tests/pear_system.phpt deleted file mode 100644 index 591b3b6484..0000000000 --- a/pear/tests/pear_system.phpt +++ /dev/null @@ -1,110 +0,0 @@ ---TEST-- -System commands tests ---SKIPIF-- - ---FILE-- - ---EXPECT-- -end diff --git a/pear/tests/php.ini b/pear/tests/php.ini deleted file mode 100644 index c75c9b4f11..0000000000 --- a/pear/tests/php.ini +++ /dev/null @@ -1,2 +0,0 @@ -; php.ini for PEAR tests -include_path=.. diff --git a/pear/tests/php_dump.php.inc b/pear/tests/php_dump.php.inc deleted file mode 100644 index 4f7a666295..0000000000 --- a/pear/tests/php_dump.php.inc +++ /dev/null @@ -1,57 +0,0 @@ -_var = $var; - } - - function toPHP() - { - return $this->_toUnknown($this->_var); - } - - function _toUnknown($var, $indent = ' ') - { - switch (gettype($var)) { - case 'array' : - return $this->_toArray($var, $indent); - case 'boolean' : - return $this->_toBool($var, $indent); - case 'double' : - case 'integer' : - return $this->_toNumber($var, $indent); - case 'NULL' : - return "{$indent}null"; - case 'string' : - return $this->_toString($var, $indent); - } - } - - function _toString($var, $indent) - { - return $indent . '"' . addslashes($var) . '"'; - } - - function _toBool($var, $indent) - { - return $indent . ($var ? 'true' : 'false'); - } - - function _toNumber($var, $indent) - { - return $indent . $var; - } - - function _toArray($var, $indent = ' ') - { - $ret = $indent . "array(\n"; - foreach ($var as $key => $value) { - $ret .= $indent . ((is_int($key) || is_double($key)) ? $key : "'$key'") . " =>\n"; - $ret .= $this->_toUnknown($value, "$indent ") . ",\n"; - } - $ret .= $indent . ')'; - return $ret; - } -} -?> \ No newline at end of file diff --git a/pear/tests/pkg1-1.1.tgz b/pear/tests/pkg1-1.1.tgz deleted file mode 100644 index fb1b65ffe307f095daa4bbb8f29b2da8ec47fdf8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 700 zcmV;t0z>^DiwFP!000003+z_iZ`v>r?{g&nhg;MqByf@fX(tmpZI#w(Rngj)N|UBQ zt|20cJ;zL?)Bg9J6GEYz)U~DBL-P{^--plV`wB9g&chhHH(9#(Qg9t-Fc`od7&!NS z0bJkp0DOPo_1&KD^@ug_JkoFQ^57%NJp4daBqAT$Zr8B^^QnlEJRaJo7w4VB!~Rjn zwP6%k{LP2+_m@}W6OdKez{Sv+tztO z%L3qem|-C2vCCPxESbe3%R;pb6nCb_0BIaD&XSb zNXF727ZVXJkMSnVWQyIX$T+JcwVo0w1}TOSXXUc;gl)UBNf#wUA?+z@^;J{@w@X2+ ziAofO8UxR94m!>eeJBuyQOVL|ia8k>e;mW-YRy^AtW+q>q)yLCO0tToB)OoJ+~p@i ziFrf?v@BCa(J19BCr}pa8xsL~DRF31(ruud4DA^0d!<1#&ty&35xKL$uagwhq|j@V zh5;sgWOF8Mm{4evszjnhk$EL1HkkYj?OP$##FVPdp0qy}B9l25#a9u>6Lp*D+d1M+ z44w(85VxG;Z1b{IBX!<+-C=?CwEj08N8RbNbwGAIUko0Y|KNK5dj5L{1LF9O@51gK zY48X5h*I9NS{7@!Y5ujrJj%uKsuN-VG}^B?Qz4fsiDw$jC@EFjtYuBpuqeuYcYppe zwnoAKzE*>O#Jd02^M~CZXwN?5QT^ZV8%D41!}BlK;6XI~|GM#){@?ijv70j<)&KP3 i2iHC5k-Wjnqv`(!4PGyP0{{U3{{sMn3<8M&6aWBoR9ip* diff --git a/pear/tests/pkg1-2.0b1.tgz b/pear/tests/pkg1-2.0b1.tgz deleted file mode 100644 index bc16f70e0abc57c992130f965c95c4b2a1467fc2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 703 zcmV;w0zmyAiwFP!000003+z@)Yui8&&e`DqFcmo&?3LtLPRm+OX#-7Zh-q>O6p9`b zSy<9;SDO;2^uKqsvK%`E(xeVOL?76mo!8FJ3(Fu{1PKmq@@(&=;Mlh3d9Vi+?0dfe z&e(AQ#$#`IFt)uR(crl*>9=@!@F`UuexfQrt$BnE0A=WX0eXhO0Qq}CHux~>ps8R z0pLZDqc0bU!_ia6!G#1Z-QKAIEX~fSuJVwl*rJ}Fo-!bWE~0H4rTLP8iqo$DI4`wR(*G1hm^+V zSPSDoqwm`GuKR#lTtM(%v@t2DzbE%n-E z#egb(zjsQ>y+$v!#ukG!EwiC|GOjSz#V$T84sNU z*mW2!9sr+G!MmMqhxK~2|9Vh;8RBR)iLieX@7J72$fZh?xrSotuu%jaWqSGD=~1Q{;P31=n$W-zR%S!@2iM zh#LehAwl4KV|PE;$2IZ2kw>1)pAL6mQ_MX13bM+0IkDZLV-qN2o@8Y@u}{v=1_uY@ z!+~p)X=t$*Z_nObT+WV(sLO_&U!GqapAvhalz2s{fJhF-LJUh#G*Jm{bGiJ z=Y>6s5LQM7gkqU`jGCn(R@X%l$yF%f%XKCpAqpx*uDB$#zULT=MZux* zzGVU$%fph-d9pf!o2U>u3}ap}T60=C$#V#Eh!RH4vi5{-yRx~j3_$|wRIPXu)zBTf zjJBJal|%|c&v8Zr=MX;_2u-MYc@{&7MrQA3Q`%jAT||XH;3*dpV9Pm1H!q7N)s_is8#1(-{?{Fc-RaWx4R=3del!1x>jmri?~Qz< z1WwS+|9=8D#gzA~o<;k8oPT|yA7*jXbQF1clDw=bF&8VDr3*#$C^4da+Oy(3sw&g( z?zivS)-?Rz*XraWjuRR531ny~L9zr)j`>;LDC2l{{G55;cIcvS!E mcR|-3;cMV-4)5?wbp79l diff --git a/pear/tests/pkg3-1.1.tgz b/pear/tests/pkg3-1.1.tgz deleted file mode 100644 index f3746443d8067a2c8dcd17141ee43144764eaa55..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 714 zcmV;*0yX^~iwFP!000003+z|jPunmM=Q&dUhg-x`rPgsjVRBQZ4QWh6RD&0!NmJS! zY1Ab4oG?+Q{qH+FP1mw%j8Vh``Ke9qyYu;cAHGxtvqcbL`zB5Ho(kOa27>|Yfq{4D z7og*D4`4VPbo#tE>~kUwI-KNdJUzsiA`jnC=dsL2E^m7-U^bIsoJAw|w97)w zXF65|ZQ)-93#`l)Y?EU}(;&_Y`jSDGutoBnGDF36P7|Za3b5gp2<|Ol2gfPnV_Fw5DI38r6p|Jl+Af=2^wilUWu=~>hm@i zteTXpFeuRPcwV>V9nyy!VF)EJiD#IRlF9oCd@RR;Rm4(++)U#1oF>F8XC)_-6p~-@ z2~lAdQUWb)sK^_ZzcK<5^D>JU* z1d})~)+!AFjN3`)T)8kMm&Rpkg|QyFQ>i1=E||!U+*>L2)Fipf{!>FFWvVjF^UpGh zrusH6ZWo9$Kke9{2Qr;GN;R z|983rq71!Z7j|z*jo%=~6!M1Ca9FcR{jUk;VFyR68x{6X!u^smlWM8sXkLJ6C04Y_ z8qO>U^4#9{{QD21YwSPwv1yc;kr@uI4%mSrGAT1y(W z7}QjzqQoVl8CyW@Zb&ydMl@$>QQ{XJGK4Ks)T$~pyjD2Tmh>Q`W?J)%w;wsiVxDtY zd0#UDjb%~6Cp=yr!VSws2E8fILt1faImt7KGGK8?&9L%>Zo9HMSB4+~byO|BifZKa zypYzDiWRdGqP}grUHbq(7zj-K&N4A)80zv)x8RtO zyY$2$pop=4mL^je48vdf079)dj1y8W1q?0BxkYdzLn{I6UL|sqDTcfyC`*@zcT~hj zCoG%kT#Cn;Gx|@|8*J#AVZEzann9MTa&1x*h)yEfoC}LgFhOZmsBtQX)`ZIhq(yX{ z46R$vkN{f_hIDhwSg&;rhIO|`t(QL4 z8ax#G#KqIuqw7N4{ThF{|B2HN%>CaVI9}hyw*U$30OcDzKf)2FyxnTIXs3hsUx(-) zGdNtGf#mIJ{I;S@xme0HnU_RgB}TME+pTHFlrjgt^W&$sHHuz(TMZtFb^ou=e0u*H z`R6qr)&GNmCU}1H{{Js%`u}y~H~qiy=G)C0kLv%xL4xCY1G1aN8~hPX|2JsxdhrVY Q0RR63010`O8UPjm0N=%6egFUf diff --git a/pear/tests/pkg4-1.1.tgz b/pear/tests/pkg4-1.1.tgz deleted file mode 100644 index 08423ae28b0e16fae49a8aa90b00043c12ac4d93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 702 zcmV;v0zv&BiwFP!000003+z_iPunmM=Q&dUhg-x`rPfJ5QkdM7X+s**5Y^xXY0{K7 z*EDJpdv-vSY5)7qNmE)jjR8e_AU`Fk@5ATweW@~-E`kW#H)*o>Qg9u|^E}uC1Lxi^ zfID#e0E2ASr_-y@dS>5_hpmj@qF=HVKZjzu=K-L_)`W>XQySv0gy&d*v02mQmA zYs1L5_?r)B?=LRL#~{nHf%D7ri{n$U=XoyQGA1!lZ8?|i409IdAzSISj9uDaZQDA} zZ&(043sUsuBI@s)U%s7WIuDWr6=#)Zu`NVB zRk6(J2!9qVuyU8PO-Z4e262|tOAZx`EtYSU70RzP5yp~Pa8{6&tnl`epjgaPfh+GT zA(FAg&%{K8%OkuAQkh_TDpJl$Nu{Smf_{QQ$XT&0Jz?9fY|^@5D5O2QQeQ>YciS#! z6;X=9AVwr6d!SlDqtb zC@~AEfR;t7C>n))gluh6#lxE=weg)zH>ipk_9h1P$$5A=Jdws?DBeAQB>#8EXAiMA1au#`*06 zaW@uEg;a=J?s2wxUn-L-^}K2_-+Ds-n~tOIblEx{J0CF*&3|w^gZ2D3gP#az(1YDO zQsX!95v9CgH7wR_()??J`4o$zRVTv!Nw{Bfra~@N9L;kuqoh!6vW7KH0eQtPB?Q<&Tov?0MXL^XIpnl!n| zHI16snH?s|wC_I0X`p3-4OYYh`6)^5yYu<}t2ql7EXMA2mhQY1T*vW!A9kRGbMF_x z^&KBzIP|^#(Cc}64Svt_;Kl4|a0fcpnTH=JRU-JvcDs%Z$U_k&JRaF6=VzV0y}^FR zwP74s^xem^4;Pn{Bgm_=f%D7ri=$Jp=S7jfCnQHEyZJotax6$xL}Vq`DfQ~}^|6in zf|dn9Im<7y8wP8NvoBu&PR>S4wY6P33|Tv#oi?+D}5q zWS$9JSzj|zD@y||rXpG%;5Ezg6uY6wD5*HLoD?YrDYA$Xv#cy3o2IPql_5yfXH+e| zif-U`Jxc0L#fn&gLC?+w=cv?I5yw+`lN2`##O-K26}d#*FprXTe|28#T+zBa0_*kq zf4$>$mwMzjyxY6uFY_PV-q6hd-oWjf`R_V?cL3WnpuvNnW1Z@j)v`#tt><1F%8ywb ztR@HSoKX^H?N)<-#2@{CJIl!Z>GtBVJrSMcpOdtH)!y7@f!dD P|NjF3zg1ia02BZK3$0OM diff --git a/pear/tests/pkg5-1.1.tgz b/pear/tests/pkg5-1.1.tgz deleted file mode 100644 index 37d1b50a93142f214ef20da4962e0e38849bab35..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 706 zcmV;z0zLg7iwFP!000003+z@)Z<|06&Kb%7VTy9HWH0yuNwvnQ+DJ{+C{~k8q)HWr zF-8V5*bDcF|fI1cQAhIQ{3 zz;^8(fa^NFp*?V&0kNE3zXvboPlG$~F=ZaEQRT77MyB1hOu#Gdl3s9DlC`Y#_LHDk%u|6Y z?`t8FvBb;7RD{bTyzx_+U^fscXO*PZQzAhxK|kcITvnd2ZC5twyksb(J$bFZimGRK zZO&?<5`}(&UeB`n9qW)D3WR1 z{Ddem3#ovXWvVC|rF`WC%6xreBA{4G9GR4K6X+%*GeYxTX^_m(S(9}{?riW`oL~~? z#oDB1fDRwooJ$j?6q>jykuX*xbLy*^2|7O`^HvBo)un2(C+&}fNM(k3{#8WLRNcnK z?E-Np22X`lh+EEaws~2qkvi|Z?l8}ITL0^gqwciXIv~59FB%Wbf3SP*dj9wN4sl$| z9m4J%Y498Pm{Q&{S_W&kY5uiAf6B$tsuN-VB;2n!fsjiTNAm*oC@EFjtYrj=pXX)2 z+dqD4TVwBkU#r1CV%`7i`NQrHv}d33sQw=gHDloP;rW+q@F1H0f8F>)|8M;N*v%P_ o>VMZJhTR_wU^j<1_$!+JZ_wcN;uin_0RR630KgHL*#Hy(0K5}m+W-In diff --git a/pear/tests/stabilitytoolow-0.3.tgz b/pear/tests/stabilitytoolow-0.3.tgz deleted file mode 100644 index a7d6a86760df1ea558469fd7df85064df0640a1c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 711 zcmV;&0yzC2iwFP!000003+z@~Yuhjs?z18PK{I^{B(j~vZinJ@Y=w2KG^~9o42EN$ zI3~8GNov=0?7#2Wj&oylZP&1e`onglbJNke5fOy*AcpQ;mLBX2wq?1lOAbf@Yv-2` z+jBfZJkRYrZqIRCB)LwnPxj_dgEiO)Gf!?os)Xl5)9zX(fjs0>bTl~b z*d`hI27B}2;{Db2_>_pMY{=#H<<;pqF=twfx0DJ9WLL~YHwR549nqy+r?89qwc6Hs ze#;<)Wg;}5=1+q;)SffC$tgv%Ajvhp=vztHBKbyDtn5bNrm$2j7%jIouk`j4 z$FR&Y4omNACZMs@&-sK$ixapDGLb?zG)fd=2PtX{`D#s>pY5Gr1pgpi|=@y9XwT&)?ciIoV38O0;Gg%m@r z*Sa~!jI7fWfq*>1Qd*Rm!eEsAr4Jy~>cY4odLdwFig|1jyvWdu!Q3el-W| z4K__uNE4-3CJO>7qK7tT!Xy)nOj1=yl*pl}@<2{aQsif7-g7P|Mb(=0c?M$6Gm(Q* zUwIr)ksWZ>&cJqx#_y11Eb+BOQDj+X3WBxM#iM^cv z&cNHpV_hx>oy t-^V|k@udFuY$Wu&zDHi_iVYq>)Bg<`yk7hU009600|2QodU601003_4V#@#k diff --git a/pear/tests/stabilitytoolow-0.5.tgz b/pear/tests/stabilitytoolow-0.5.tgz deleted file mode 100644 index 28f88baec80fd14ab96f810b1acef4f09268f28e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 713 zcmV;)0yh00iwFP!000003+z{0PunmQ=DAY;gBS5ssdbW)1SU6S+K|RHL^XIpnl!o1 zX&N<&J=<)QY5#pENzN*w~hAsB$-TB+gtI-LORoRe>tBcE%Gh)q*k*_J0z*SGqWG@FpBNNf3T(_```nB5D zd11Rn2+Mf}p*DP+q={J=AyV<3(UMy7^>vnUwFnh_y-pNF#DF$rDij%=y!rIyG)LVu z1;uDBS*k^#Cn}K!PYb7f4z=fuZgNV|j3>FlFZxyzwn$;CDpq!_aZ^|-7L1nLnpb-J zL10*BnSiDDH51TS8s=gwqQx=X@Jy!An~03jic`xekwTaPj~FeNl_zxDmCd~_2?|h0 z*W$|nhj!0nwBA&#h#Lr9+wOPmBm7_>3PQz8lL_Q#Wb}SSK2~c+YhopWVMcMD${EK{ zo3(B(FeB^qL?9uLu#^^MrZ5;Kf9V5Ay}B@Nh*?M&SaKd)1TQkMVz73K1bKduG+75^ zZG%md6w*YSmC1rYis+%unY73lBa>7W5+!P2>71*nMT-0ktXm<}xTso-KF&ZaL?(04 z`m>1RvARvn?Hu4~ES?Fe0Jhv?bo0JgC3WUm-ELv)-u=JRaa}AJx(dh>&6q#Tf8s3X zzw0>%Zr?|O=egOag|NjF3I?!jI02BZKl@?uP diff --git a/pear/tests/stabilitytoolow-0.6beta.tgz b/pear/tests/stabilitytoolow-0.6beta.tgz deleted file mode 100644 index 05dc8f9a9ee14dad85f79254e3a451265862b06d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 714 zcmV;*0yX^~iwFP!000003+z{0Z`v>v?sFvmgBR@y37iB-+R21YTcvecRkZe{(xfSn zLx@OX&vv)cY5#pE4xzv_^&+}GG@rOQ-#I=$J~x4gri&$&>zJr_HaG$>7GT$1t0+s|K53*4J! zAQ`PS&9)fSRHj1XY2hqdK zj$xVS99G`fLO^3#Snvstm&b4uo`aF!eEp{CCkz&6liGtVN5<%Yes9bQo&H8dS$p; zSA4-SDR&u)K|m2>H7!lDFdjy}ash-|-x(i>UJ4l6Vv*Pc?=rL#uy^VNWqz4AQOD%Y z2AicBWU10?lO;jQ0HV#gu*n32lU79%r*dekB9b$klqnk8x17sKS-3WRnt_D#Toj&d7J9n1;BnRo^c@ow%lWM^S)Rpb@Ex=aiR6F{@>}i&Z=POIwE_RG55@W;(CFZ z|K7mudp*A-dcA<`;p7JQfsHW7EvseGb{mIYo0K1BalC3i^7=G>T`^NGmNHG|nv}D{ zsJ3a#nr4wwrp4W#ze-!9@PA*c!2|KP{$GzDx;xMwf5xNwe=tB|5O@Q!_q#Uu6HWiW wY~0`f8$Umuc*djpKX8%g`%d%!@1LOQ{{{_SE`9?50RR630566-VgM8X07NKYF#rGn diff --git a/pear/tests/stabilitytoolow-1.0b1.tgz b/pear/tests/stabilitytoolow-1.0b1.tgz deleted file mode 100644 index 1aefb6b587a5b5eb6974cf9f9c8a4094dd9c2f45..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 715 zcmV;+0yO;}iwFP!000003+z@~Yuhjs?sFjj;mqtQkjQqLxE+equ@%;_(y;cWFc?mJ z;+WW$CaYW1vH!kfInIr;UP#$P{b4)Ox#{TKhzut4Ai~aVnjE|o9NX^q`)~jS?44f# z$Lrbvp4UHg`(2j=0s3y&g%|Uu#u|J`nTMaK@>pa8%jwt_U^Wq9oJ9lc?DC?0bksX; zI~EN627mMM;=|ST=oDmGHgI`;d3AaY)=X>pjxmXW>d2YwWT;uFL$;J_7j{X%QrkMu zZ#DpU7NqFsIvB@EtQT5{MEv5+Pz^u7Nz*_re1$)5Vuc}S%r#7fg3;;wuiwuy(oGUn zoK=!WEyR4HVyWpge;UlO@|?3xjuB0RIMei!Z-%f%@*8Eb@|&DCg{5M_nb}r6NIH2X zz6`KW@f|yyRojvo1{!_Ww!3Znm>vp6K`41iJi(02j6RLvOS$H(B9M5fg~Wj+=aB_;lYteXwNoX;>lay*RYcY{ z_%u#1iF3U&SrDKIAK9Eq3&s?hxGa${Rs$=~0yVXuNYKE#6GDxPvbEUr3`9btGQ&Lo zCZcGp?qYp6N8FFab0HPtmV2CS-j~XxN31BC?km^T7NE$Mwwo zcYDsE+ok#MIG*dkUe2!ZZ}1^yx!GtoSgS=tuLZ@&EKZi~2XD{9w~jDq5r?HRpXJkzyDX`hwTou=bZ7R{_pjO(CgYB?D?iO?nB-G xuNx2b|Hj{sXP@z;{`VXr96BEHYrH(_{;yHv_2Mr8009600|3bgEv*0)002feYOeqQ diff --git a/pear/tests/stabilitytoolow-2.0a1.tgz b/pear/tests/stabilitytoolow-2.0a1.tgz deleted file mode 100644 index d0f89060ad835af6f80562a18a0d305c1b0b645d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 718 zcmV;<0x|s`iwFP!000003+z{0Yuhjs?sFjjK{I;_B(j~_ZinJ@Y=w2KG^~9o42BY) zI3~8G$?Dd0?7#0=j&q}|7gF|6etHC3!rs&Mq&yM@Qaq z*RjYjY_T^VFFssdk4}lK%7$ECUtXP_6Kkfmd`GDSu6lANdpT$t>4+}nx}{yzuhq8B z3)?M1Sk5yD3(dz#n&^cVA{D)^6a@0*z zP>j}+MlFJ3q7td`v~bGjP|CZMr2%*9wlixarznM|QK5gDTur02TCv@AD&3$1A3Q(u0 z#g_pN-JZ=IM(b_GjJSr-we5b_KE@Y@q9jzjG?_q-W=5Yz@RWB6yX76@#@?Cdl*4w8=Uo zYa48uq>v_sUYRTjq>LZhoJos}F*Zq6BT=FTR*`cxwMdzvfpsT@8kcoz(dQY6g~((M zMe$9<@mSp@`fd)eAB*QgDu6Bb7~Q-t)=8avRySPOdSw6abX?aI3|$3eFEi$W`A-}- zF!SH_oI|(oBf$yqYhW*DH~2T$5VPEFwOh2)!J*e7<-;samfc6*o<(mf%0$S8O5&L& z<@7M39olY9QeG6M$DQAQN?XJ5e_yM?BXNKKuci;(ooCNE<4OJRc}Vd3c0l%g(+2mU z>HpV_hx&ix*T=KZcvAld`2Wv2bOPizczHDa-=M+k#a{pb0RR630BA*U+yE2+0ISYl AL;wH) diff --git a/pear/tests/stabilitytoolow-2.0b1.tgz b/pear/tests/stabilitytoolow-2.0b1.tgz deleted file mode 100644 index 890d2378dd99945397c1d37ac3ba5003fdbf2e2c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 713 zcmV;)0yh00iwFP!000003+z@~Yuhjs?z18PK{I;_B(j~vX@}x;Y=w2KG^~9o42B(_ zI3~8GN$S>g?7#0=j&oz97uxNi{zz=;+;ntqScKC>m_YX?&kmjouH*Q=PYy^4XYWmj zJM1}x42OQ-^LvB-07<^r^T@OL(_jNO#>|uNAXUnXk?nRJn?Nz;aatrJ`}E?xb9gv7 z>bN!;2Nrwv{`}qL)#QYTs%*%`)y3t>8L{VDi#L=C2xV8yMYjM=V;$3#T&J{)`nB55 zc|pq}gcV^9fzn}=W~p9k&NKdlQA0I+b)Dy-Tm}-pU8fRaqCsggCnG-@%ZsZ52&(}G#JfZB6Lw>d^M57R>9AAK`~9a3Ob#mcS~Zc0n#f>E=rdB)q1 z9K$ltIjp>|nSjQ!px_aYm&b4u<|2dcl;@0AoLWxu41x^8m{GH=JfXX;Z10sJNI)G` zi?0G4cwHxQ8LhV!GY&Nbp5yd7&Jq4F6eXeJW$6?OG&A`yA)l%>qcyP-!9b&U1Ukf6 z>y2u`F(sS)#2}!Ev6hx5RTvG!U%3E6t#6DQqL%_jwpb)K!JCZi1nj*kL7rb`P1F(D z*kH3XgDh2gZL%bgGJI%rE^HEEXws@g;#7`oRfKY8lQKag`<8PVm1S$w#~DaC&qV=B zec?$G$=g)lE&!g!;u#kbV8=a1x9^K(Qm3BP{T5jF?f<=w>zIO}>xewbjJad}6W1G> z`R@(fzSr}S;10cJ{{IuOF=n}CwJh3hqcEL6%gx%=~1X=@z(?`t)+wVP2ijxKcu@Zj@cYjl^jzdOcz!hf|FUsc v|8ISMJo=0W_5aXCLf^&L(_ON`U(xh`g9a}bzX1RM|NjF3MY*H#02BZKEyZRs diff --git a/pear/tests/stabilitytoolow-2.0dev.tgz b/pear/tests/stabilitytoolow-2.0dev.tgz deleted file mode 100644 index f5564ad8fad72e188c86c3b123b65d66676516ca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 713 zcmV;)0yh00iwFP!000003+z@~Yuhjs?sFjjK{I^{B(j~@X@}x;Y=w2KG^~9o42Bb* zI3~8GNlMpr?7#0=j&p<33+?t$f7pq1ZaO+QEW*h=jG=Rzr3bGC$F_anCkLc}z4uRu z)9<>3^!t9#^}C*9BguE&9(gr?YHYxUn0ayoQYAbeSWd^b2;>tUC3!rs&Mq(7M@Qaq z+p)+nXs~ymE%Rs`ZgIUn=d#CQ|53c*bbSspKS2AxI&N7&Xh%6T0il_Ffr+1k_QL z_$t7G+p#0KVYJ$p+$hu#xVGJG+sF7|EDA!&OOpxYXlL|!M81}5Mk`_|f{{jXvldsYJF$i5WN&Iu*5vJ2;OC2#bE8#3G)0RZ=#CH z#s-@vDWr+gYm)_m6ahq=GhvZ21}7v?lThq!Hf2U1kQzob~2&UR%xA96|H@#G-(Rt z5F(P;v)!(A+JE1PLnxq4y@+ZL%_kuCx%v3qL_{=QL<#h6^X%ZI;MjH$1mu8}uy>w> zI0MfmWH1Q&Zr}x;gQURqkl*0t!A6*QasyJOyck+e&$b8@Qy!;9GPF)F&bx<){!!Pl z$S7>FHy_VGTwaY&h^WejTwGmTo}3YDuC;hasenlK#9Z_W&@|RDUCDJzyQp8QZJigk zTZFJ8${|!bnxt8(mzwj8|76rq4PRa7c_f#igdf+bgqUbhn#{N)PUn`Iyw zttE|G3~DMImoY75=5zV8t(D+5)3}K5DwyI)f*9teKrEdlPVx-G45FA(v#dO!+pcWxl_5w#9aW33 z0vvihJBAxZ>wU$IBMqTz+g{f`!VkuxBviaCokD?j#-GOIOSNXSCRQRCX%t7hkYTj- zy>7uVDfbzQK|m2>H7!lDFdl}#@&SZe-x)VVF9i%Ou}Ca}cNtmdIw1R)F%Qgt;N8?N+-*I~^Q)9a8?7#qp~7$lKHSZAF=Kv6N{t*Q6XC zMzllQt!Wl1Wm??%^}Dn+3jg=D8axvJ=>PTfp}X_!8D~7H|9u|`z90Bx-&bw$7c~9< yy76HDZ~Xgs?io+&{{g=LIsJYg2Tk6aWB^+GUUc diff --git a/pear/tests/system.input b/pear/tests/system.input deleted file mode 100644 index 9c6bece157..0000000000 --- a/pear/tests/system.input +++ /dev/null @@ -1 +0,0 @@ -a:1:{s:13:"master_server";s:12:"pear.php.net";} \ No newline at end of file diff --git a/pear/tests/testdownload.tgz b/pear/tests/testdownload.tgz deleted file mode 100644 index 0ddc3df361cf7f028759dd3df4f7517389b4f048..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 41655 zcmV(%K;pk2iwFo`9Lhfc19W9`bYyRLZftL1WG-}Jasbr)WpLe0)HR46Lu|(wGcz+Y z+c7h<9s8J>nPSI|@tB#JnVFfHnVFd;&s+7)%#WFxdvDeJxLehdO5JMpQn%J#yQPw$ zy$K70rM(&8|3zbBW@6%GV*@ZTF)?$pGyR{p|MpmzSyC7#JAf*S`hu zwFVFce1m|5goOC^Z}silHz;U$80de71PAvW9vKM*1sMq$85IK$6BP{y9T^#m7z+m< zpOBCc6_bRFgn$f>fRNz7O2Gb|3JnE~2m^yifQF1l@c*@abpw!Lz}&#LAizif;K*PQ z$Y5Xn073u&>>Jqs*#Ck71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