cvs: pear-core /tests/PEAR_PackageFile_v2_Validator test_bug7021.phpt /tests/PEAR_PackageFile_v2_Validator/test_bug7021 package.xml

From: Date: Mon, 27 Mar 2006 05:41:51 +0000
Subject: cvs: pear-core /tests/PEAR_PackageFile_v2_Validator test_bug7021.phpt /tests/PEAR_PackageFile_v2_Validator/test_bug7021 package.xml
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-4680@lists.php.net to get a copy of this message
cellog Mon Mar 27 05:41:51 2006 UTC Added files: /pear-core/tests/PEAR_PackageFile_v2_Validator test_bug7021.phpt /pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug7021 package.xml Log: add new test for Bug #7021 http://cvs.php.net/viewcvs.cgi/pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug7021.phpt?view=markup&rev=1.1 Index: pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug7021.phpt +++ pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug7021.phpt --TEST-- PEAR_PackageFile_Parser_v2_Validator->validate(), multiple root <dir> tags (bug #7021) --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --FILE-- <?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $pathtopackagexml = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test_bug7021'. DIRECTORY_SEPARATOR . 'package.xml'; $pf = &$parser->parse(file_get_contents($pathtopackagexml), $pathtopackagexml); $phpunit->assertIsa('PEAR_PackageFile_v2', $pf, 'ret'); $pf->validate(); $phpunit->assertErrors(array( array('package' => 'PEAR_PackageFile_v2', 'message' => 'Multiple top-level <dir> tags are not allowed. Enclose them in a <dir name="/">'), ), '1'); echo 'tests done'; ?> --CLEAN-- <?php require_once dirname(__FILE__) . '/teardown.php.inc'; ?> --EXPECT-- tests done http://cvs.php.net/viewcvs.cgi/pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug7021/package.xml?view=markup&rev=1.1 Index: pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug7021/package.xml +++ pear-core/tests/PEAR_PackageFile_v2_Validator/test_bug7021/package.xml <?xml version="1.0"?> <package version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>PEAR</name> <channel>pear.php.net</channel> <summary>PEAR Base System</summary> <description>The PEAR package contains: * the PEAR installer, for creating, distributing and installing packages * the alpha-quality PEAR_Exception PHP5 error handling mechanism * the beta-quality PEAR_ErrorStack advanced error handling mechanism * the PEAR_Error error handling mechanism * the OS_Guess class for retrieving info about the OS where PHP is running on * the System class for quick handling of common operations with files and directories * the PEAR base class </description> <lead> <name>Stig Bakken</name> <user>ssb</user> <email>stig@php.net</email> <active>yes</active> </lead> <date>2004-09-30</date> <version> <release>1.4.0a1</release> <api>1.4.0a1</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer Roles/Tasks: * Major bug in Registry - false file conflicts on data/doc/test role was possible (and would happen if HTML_Template_IT was installed and HTML_Template_Flexy installation was attempted) </notes> <contents> <dir name="OS"> <file name="Guess.php" role="php" /> </dir> <!-- /OS --> <dir name="PEAR"> <dir name="ChannelFile"> <file name="Parser.php" role="php" /> </dir> <!-- /PEAR/ChannelFile --> </dir> </contents> <dependencies> <required> <php> <min>4.2</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0dev13</min> </pearinstaller> </required> </dependencies> <phprelease/> </package>

« previous php.pear.core (#4680) next »