cvs: pear-core /tests/PEAR_Command_Package setup.php.inc /tests/PEAR_Command_Package/convert test.phpt /tests/PEAR_Command_Package/package
test_v2_v1_multiple.phpt /tests/PEAR_PackageFile_v2_Validator test_norelease.phpt /tests/PEAR_Validate test_validate_packagename.phpt
test_validate_version_devel.phpt test_validate_versionextends_alpha.phpt test_validate_versionextends_beta.phpt
test_validate_versionextends_stable.phpt

From: Date: Fri, 11 Mar 2005 20:20:50 +0000
Subject: cvs: pear-core /tests/PEAR_Command_Package setup.php.inc /tests/PEAR_Command_Package/convert test.phpt /tests/PEAR_Command_Package/package
test_v2_v1_multiple.phpt /tests/PEAR_PackageFile_v2_Validator test_norelease.phpt /tests/PEAR_Validate test_validate_packagename.phpt
test_validate_version_devel.phpt test_validate_versionextends_alpha.phpt test_validate_versionextends_beta.phpt
test_validate_versionextends_stable.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-30220@lists.php.net to get a copy of this message
cellog Fri Mar 11 15:20:50 2005 EDT Modified files: /pear-core/tests/PEAR_Command_Package setup.php.inc /pear-core/tests/PEAR_Command_Package/convert test.phpt /pear-core/tests/PEAR_Command_Package/package test_v2_v1_multiple.phpt /pear-core/tests/PEAR_PackageFile_v2_Validator test_norelease.phpt /pear-core/tests/PEAR_Validate test_validate_packagename.phpt test_validate_version_devel.phpt test_validate_versionextends_alpha.phpt test_validate_versionextends_beta.phpt test_validate_versionextends_stable.phpt Log: update all tests to current cvs

http://cvs.php.net/diff.php/pear-core/tests/PEAR_Command_Package/setup.php.inc?r1=1.1&r2=1.2&ty=u Index: pear-core/tests/PEAR_Command_Package/setup.php.inc diff -u pear-core/tests/PEAR_Command_Package/setup.php.inc:1.1 pear-core/tests/PEAR_Command_Package/setup.php.inc:1.2 --- pear-core/tests/PEAR_Command_Package/setup.php.inc:1.1 Mon Dec 27 01:57:13 2004 +++ pear-core/tests/PEAR_Command_Package/setup.php.inc Fri Mar 11 15:20:49 2005 @@ -92,6 +92,7 @@ function &getPackager() { + require_once 'PEAR/Packager.php'; $a = &new PEAR_Packager; $a->ui = &$GLOBALS['fakelog']; return $a; http://cvs.php.net/diff.php/pear-core/tests/PEAR_Command_Package/convert/test.phpt?r1=1.3&r2=1.4&ty=u Index: pear-core/tests/PEAR_Command_Package/convert/test.phpt diff -u pear-core/tests/PEAR_Command_Package/convert/test.phpt:1.3 pear-core/tests/PEAR_Command_Package/convert/test.phpt:1.4 --- pear-core/tests/PEAR_Command_Package/convert/test.phpt:1.3 Sun Feb 20 15:56:48 2005 +++ pear-core/tests/PEAR_Command_Package/convert/test.phpt Fri Mar 11 15:20:50 2005 @@ -62,7 +62,7 @@ <release>alpha</release> <api>alpha</api> </stability> - <license uri="http://www.php.net/license/3_0.txt">PHP License</license> + <license uri="http://www.php.net/license">PHP License</license> <notes>here are the multi-line release notes @@ -122,7 +122,7 @@ <api>stable</api> </stability> <date>2004-10-28</date> - <license uri="http://www.php.net/license/3_0.txt">PHP License</license> + <license uri="http://www.php.net/license">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option @@ -150,7 +150,7 @@ <api>stable</api> </stability> <date>2004-10-28</date> - <license uri="http://www.php.net/license/3_0.txt">PHP License</license> + <license uri="http://www.php.net/license">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option @@ -169,7 +169,8 @@ </notes> </release> </changelog> -</package>', $contents, 'contents 1'); +</package> +', $contents, 'contents 1'); $e = $command->run('convert', array('flat' => true), array()); $phpunit->assertNoErrors('1.1'); $phpunit->assertEquals(array ( @@ -218,7 +219,7 @@ <release>alpha</release> <api>alpha</api> </stability> - <license uri="http://www.php.net/license/3_0.txt">PHP License</license> + <license uri="http://www.php.net/license">PHP License</license> <notes>here are the multi-line release notes @@ -276,7 +277,7 @@ <api>stable</api> </stability> <date>2004-10-28</date> - <license uri="http://www.php.net/license/3_0.txt">PHP License</license> + <license uri="http://www.php.net/license">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option @@ -304,7 +305,7 @@ <api>stable</api> </stability> <date>2004-10-28</date> - <license uri="http://www.php.net/license/3_0.txt">PHP License</license> + <license uri="http://www.php.net/license">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option @@ -323,7 +324,8 @@ </notes> </release> </changelog> -</package>', $contents, 'contents 2'); +</package> +', $contents, 'contents 2'); $phpunit->assertIsa('PEAR_PackageFile_v2', $pf, 'test 1'); $phpunit->assertEquals('foo', $pf->getPackage(), 'package test 1'); http://cvs.php.net/diff.php/pear-core/tests/PEAR_Command_Package/package/test_v2_v1_multiple.phpt?r1=1.1&r2=1.2&ty=u Index: pear-core/tests/PEAR_Command_Package/package/test_v2_v1_multiple.phpt diff -u pear-core/tests/PEAR_Command_Package/package/test_v2_v1_multiple.phpt:1.1 pear-core/tests/PEAR_Command_Package/package/test_v2_v1_multiple.phpt:1.2 --- pear-core/tests/PEAR_Command_Package/package/test_v2_v1_multiple.phpt:1.1 Mon Dec 27 01:57:13 2004 +++ pear-core/tests/PEAR_Command_Package/package/test_v2_v1_multiple.phpt Fri Mar 11 15:20:50 2005 @@ -90,7 +90,7 @@ ), 3 => array ( - 0 => 'Tag the released code with `pear cvstag ' . $temp_path . DIRECTORY_SEPARATOR . 'validv2.xml\'', + 0 => 'Tag the released code with "pear cvstag ' . $temp_path . DIRECTORY_SEPARATOR . 'validv2.xml"', 1 => true, ), 4 => http://cvs.php.net/diff.php/pear-core/tests/PEAR_PackageFile_v2_Validator/test_norelease.phpt?r1=1.1&r2=1.2&ty=u Index: pear-core/tests/PEAR_PackageFile_v2_Validator/test_norelease.phpt diff -u pear-core/tests/PEAR_PackageFile_v2_Validator/test_norelease.phpt:1.1 pear-core/tests/PEAR_PackageFile_v2_Validator/test_norelease.phpt:1.2 --- pear-core/tests/PEAR_PackageFile_v2_Validator/test_norelease.phpt:1.1 Fri Dec 3 16:01:22 2004 +++ pear-core/tests/PEAR_PackageFile_v2_Validator/test_norelease.phpt Fri Mar 11 15:20:50 2005 @@ -15,7 +15,7 @@ $phpunit->assertIsa('PEAR_PackageFile_v2', $pf, 'ret'); $pf->validate(); $phpunit->assertErrors(array( - array('package' => 'PEAR_PackageFile_v2', 'message' => 'Invalid tag order in <package>, found <changelog> expected one of "providesextension, srcpackage, srcuri, phprelease, extsrcrelease, extbinrelease, bundle"'), + array('package' => 'PEAR_PackageFile_v2', 'message' => 'Invalid tag order in <package>, found <changelog> expected one of "usesrole, usestask, providesextension, srcpackage, srcuri, phprelease, extsrcrelease, extbinrelease, bundle"'), ), 'no release'); echo 'tests done'; ?> http://cvs.php.net/diff.php/pear-core/tests/PEAR_Validate/test_validate_packagename.phpt?r1=1.3&r2=1.4&ty=u Index: pear-core/tests/PEAR_Validate/test_validate_packagename.phpt diff -u pear-core/tests/PEAR_Validate/test_validate_packagename.phpt:1.3 pear-core/tests/PEAR_Validate/test_validate_packagename.phpt:1.4 --- pear-core/tests/PEAR_Validate/test_validate_packagename.phpt:1.3 Mon Dec 6 11:33:12 2004 +++ pear-core/tests/PEAR_Validate/test_validate_packagename.phpt Fri Mar 11 15:20:50 2005 @@ -325,39 +325,38 @@ $pf->setExtends('blah'); $res = $val->validate(PEAR_VALIDATE_NORMAL); -$phpunit->assertFalse($res, 'extends'); -$phpunit->showall(); +$phpunit->assertTrue($res, 'extends'); $phpunit->assertEquals(array ( 'warnings' => array ( - ), - 'errors' => - array ( 0 => array ( 'field' => 'package', - 'reason' => 'package PEAR extends package blah and so the name must have a postfix equal to the major version like "blah1"', + 'reason' => 'package PEAR extends package blah and so the name should have a postfix equal to the major version like "blah1"', ), ), + 'errors' => + array ( + ), ), $val->getFailures(), 'failures extends'); $pf->setReleaseVersion('2.0.0'); $pf->setPackage('blah'); $res = $val->validate(PEAR_VALIDATE_NORMAL); $phpunit->assertNoErrors('extends no postfix'); -$phpunit->assertFalse($res, 'extends no postfix'); +$phpunit->assertTrue($res, 'extends no postfix'); $phpunit->assertEquals(array ( 'warnings' => array ( - ), - 'errors' => - array ( 0 => array ( 'field' => 'package', - 'reason' => 'package blah extends package blah and so the name must have a postfix equal to the major version like "blah2"', + 'reason' => 'package blah extends package blah and so the name should have a postfix equal to the major version like "blah2"', ), ), + 'errors' => + array ( + ), ), $val->getFailures(), 'failures extends no postfix'); $pf->setReleaseVersion('2.0.0'); http://cvs.php.net/diff.php/pear-core/tests/PEAR_Validate/test_validate_version_devel.phpt?r1=1.3&r2=1.4&ty=u Index: pear-core/tests/PEAR_Validate/test_validate_version_devel.phpt diff -u pear-core/tests/PEAR_Validate/test_validate_version_devel.phpt:1.3 pear-core/tests/PEAR_Validate/test_validate_version_devel.phpt:1.4 --- pear-core/tests/PEAR_Validate/test_validate_version_devel.phpt:1.3 Tue Feb 22 00:18:18 2005 +++ pear-core/tests/PEAR_Validate/test_validate_version_devel.phpt Fri Mar 11 15:20:50 2005 @@ -326,19 +326,19 @@ $pf->setReleaseVersion('1.0.4'); $pf->setReleaseStability('devel'); $res = $val->validate(PEAR_VALIDATE_PACKAGING); -$phpunit->assertFalse($res, 'attempt 1.0.4 devel'); +$phpunit->assertTrue($res, 'attempt 1.0.4 devel'); $phpunit->assertEquals(array ( 'warnings' => array ( - ), - 'errors' => - array ( 0 => array ( 'field' => 'version', 'reason' => 'packages with devel stability must be < version 1.0.0', ), ), + 'errors' => + array ( + ), ), $val->getFailures(), 'failures attempt 1.0.4 devel'); $pf->setReleaseVersion('000.4.3'); http://cvs.php.net/diff.php/pear-core/tests/PEAR_Validate/test_validate_versionextends_alpha.phpt?r1=1.3&r2=1.4&ty=u Index: pear-core/tests/PEAR_Validate/test_validate_versionextends_alpha.phpt diff -u pear-core/tests/PEAR_Validate/test_validate_versionextends_alpha.phpt:1.3 pear-core/tests/PEAR_Validate/test_validate_versionextends_alpha.phpt:1.4 --- pear-core/tests/PEAR_Validate/test_validate_versionextends_alpha.phpt:1.3 Tue Feb 22 00:18:18 2005 +++ pear-core/tests/PEAR_Validate/test_validate_versionextends_alpha.phpt Fri Mar 11 15:20:50 2005 @@ -420,46 +420,46 @@ $pf->setReleaseVersion('1.5.0'); $res = $val->validate(PEAR_VALIDATE_PACKAGING); -$phpunit->assertFalse($res, 'attempt 1.5.0 alpha'); +$phpunit->assertTrue($res, 'attempt 1.5.0 alpha'); $phpunit->assertEquals(array ( 'warnings' => array ( 0 => array ( + 'field' => 'package', + 'reason' => 'package PEAR2 extends package PEAR and so the name should have a postfix equal to the major version like "PEAR1"', + ), + 1 => + array ( 'field' => 'version', 'reason' => 'first version number "1" must match the postfix of package name "PEAR2" (2)', ), ), 'errors' => array ( - 0 => - array ( - 'field' => 'package', - 'reason' => 'package PEAR2 extends package PEAR and so the name must have a postfix equal to the major version like "PEAR1"', - ), ), ), $val->getFailures(), 'failures attempt 1.5.0 alpha'); $pf->setPackage('PEAR9'); $pf->setReleaseVersion('10.5.0'); $res = $val->validate(PEAR_VALIDATE_PACKAGING); -$phpunit->assertFalse($res, 'attempt 10.5.0 alpha'); +$phpunit->assertTrue($res, 'attempt 10.5.0 alpha'); $phpunit->assertEquals(array ( 'warnings' => array ( 0 => array ( + 'field' => 'package', + 'reason' => 'package PEAR9 extends package PEAR and so the name should have a postfix equal to the major version like "PEAR10"', + ), + 1 => + array ( 'field' => 'version', 'reason' => 'first version number "10" must match the postfix of package name "PEAR9" (9)', ), ), 'errors' => array ( - 0 => - array ( - 'field' => 'package', - 'reason' => 'package PEAR9 extends package PEAR and so the name must have a postfix equal to the major version like "PEAR10"', - ), ), ), $val->getFailures(), 'failures attempt 10.5.0 alpha'); echo 'tests done'; http://cvs.php.net/diff.php/pear-core/tests/PEAR_Validate/test_validate_versionextends_beta.phpt?r1=1.3&r2=1.4&ty=u Index: pear-core/tests/PEAR_Validate/test_validate_versionextends_beta.phpt diff -u pear-core/tests/PEAR_Validate/test_validate_versionextends_beta.phpt:1.3 pear-core/tests/PEAR_Validate/test_validate_versionextends_beta.phpt:1.4 --- pear-core/tests/PEAR_Validate/test_validate_versionextends_beta.phpt:1.3 Tue Feb 22 00:18:18 2005 +++ pear-core/tests/PEAR_Validate/test_validate_versionextends_beta.phpt Fri Mar 11 15:20:50 2005 @@ -420,46 +420,46 @@ $pf->setReleaseVersion('1.5.0'); $res = $val->validate(PEAR_VALIDATE_PACKAGING); -$phpunit->assertFalse($res, 'attempt 1.5.0 beta'); +$phpunit->assertTrue($res, 'attempt 1.5.0 beta'); $phpunit->assertEquals(array ( 'warnings' => array ( 0 => array ( + 'field' => 'package', + 'reason' => 'package PEAR2 extends package PEAR and so the name should have a postfix equal to the major version like "PEAR1"', + ), + 1 => + array ( 'field' => 'version', 'reason' => 'first version number "1" must match the postfix of package name "PEAR2" (2)', ), ), 'errors' => array ( - 0 => - array ( - 'field' => 'package', - 'reason' => 'package PEAR2 extends package PEAR and so the name must have a postfix equal to the major version like "PEAR1"', - ), ), ), $val->getFailures(), 'failures attempt 1.5.0 beta'); $pf->setPackage('PEAR9'); $pf->setReleaseVersion('10.5.0'); $res = $val->validate(PEAR_VALIDATE_PACKAGING); -$phpunit->assertFalse($res, 'attempt 10.5.0 beta'); +$phpunit->assertTrue($res, 'attempt 10.5.0 beta'); $phpunit->assertEquals(array ( 'warnings' => array ( 0 => array ( + 'field' => 'package', + 'reason' => 'package PEAR9 extends package PEAR and so the name should have a postfix equal to the major version like "PEAR10"', + ), + 1 => + array ( 'field' => 'version', 'reason' => 'first version number "10" must match the postfix of package name "PEAR9" (9)', ), ), 'errors' => array ( - 0 => - array ( - 'field' => 'package', - 'reason' => 'package PEAR9 extends package PEAR and so the name must have a postfix equal to the major version like "PEAR10"', - ), ), ), $val->getFailures(), 'failures attempt 10.5.0 beta'); echo 'tests done'; http://cvs.php.net/diff.php/pear-core/tests/PEAR_Validate/test_validate_versionextends_stable.phpt?r1=1.4&r2=1.5&ty=u Index: pear-core/tests/PEAR_Validate/test_validate_versionextends_stable.phpt diff -u pear-core/tests/PEAR_Validate/test_validate_versionextends_stable.phpt:1.4 pear-core/tests/PEAR_Validate/test_validate_versionextends_stable.phpt:1.5 --- pear-core/tests/PEAR_Validate/test_validate_versionextends_stable.phpt:1.4 Tue Feb 22 00:18:18 2005 +++ pear-core/tests/PEAR_Validate/test_validate_versionextends_stable.phpt Fri Mar 11 15:20:50 2005 @@ -362,68 +362,68 @@ $pf->setReleaseVersion('3.0.0'); $res = $val->validate(PEAR_VALIDATE_PACKAGING); -$phpunit->assertFalse($res, 'attempt 3.0.0 stable'); +$phpunit->assertTrue($res, 'attempt 3.0.0 stable'); $phpunit->assertEquals(array ( 'warnings' => array ( 0 => array ( + 'field' => 'package', + 'reason' => 'package PEAR2 extends package PEAR and so the name should have a postfix equal to the major version like "PEAR3"', + ), + 1 => + array ( 'field' => 'version', 'reason' => 'first version number "3" must match the postfix of package name "PEAR2" (2)', ), ), 'errors' => array ( - 0 => - array ( - 'field' => 'package', - 'reason' => 'package PEAR2 extends package PEAR and so the name must have a postfix equal to the major version like "PEAR3"', - ), ), ), $val->getFailures(), 'failures attempt 3.0.0 stable'); $pf->setReleaseVersion('30.0.0'); $res = $val->validate(PEAR_VALIDATE_PACKAGING); -$phpunit->assertFalse($res, 'attempt 30.0.0 stable'); +$phpunit->assertTrue($res, 'attempt 30.0.0 stable'); $phpunit->assertEquals(array ( 'warnings' => array ( 0 => array ( + 'field' => 'package', + 'reason' => 'package PEAR2 extends package PEAR and so the name should have a postfix equal to the major version like "PEAR30"', + ), + 1 => + array ( 'field' => 'version', 'reason' => 'first version number "30" must match the postfix of package name "PEAR2" (2)', ), ), 'errors' => array ( - 0 => - array ( - 'field' => 'package', - 'reason' => 'package PEAR2 extends package PEAR and so the name must have a postfix equal to the major version like "PEAR30"', - ), ), ), $val->getFailures(), 'failures attempt 30.0.0 stable'); $pf->setReleaseVersion('1.0.0'); $pf->setReleaseStability('stable'); $res = $val->validate(PEAR_VALIDATE_PACKAGING); -$phpunit->assertFalse($res, 'attempt 1.0.0 stable'); +$phpunit->assertTrue($res, 'attempt 1.0.0 stable'); $phpunit->assertEquals(array ( 'warnings' => array ( 0 => array ( + 'field' => 'package', + 'reason' => 'package PEAR2 extends package PEAR and so the name should have a postfix equal to the major version like "PEAR1"', + ), + 1 => + array ( 'field' => 'version', 'reason' => 'first version number "1" must match the postfix of package name "PEAR2" (2)', ), ), 'errors' => array ( - 0 => - array ( - 'field' => 'package', - 'reason' => 'package PEAR2 extends package PEAR and so the name must have a postfix equal to the major version like "PEAR1"', - ), ), ), $val->getFailures(), 'failures attempt 1.0.0 stable');
« previous php.pear.cvs (#30220) next »