cvs: pear-core(PEAR_1_4) /tests/PEAR_PackageFile_v2_Validator test_bug7021.phpt

From: Date: Fri, 16 Jun 2006 12:16:40 +0000
Subject: cvs: pear-core(PEAR_1_4) /tests/PEAR_PackageFile_v2_Validator test_bug7021.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-4818@lists.php.net to get a copy of this message
pajoye Fri Jun 16 12:16:40 2006 UTC Added files: (Branch: PEAR_1_4) /pear-core/tests/PEAR_PackageFile_v2_Validator test_bug7021.phpt Log: - MFH: #7021, #1/2 add new test 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

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