cvs: pear /PEAR_PackageFileManager/tests PEAR_PackageFileManager_TestCase_addConfigureOption.php testsuite.php
/PEAR_PackageFileManager/tests/addConfigureOption test_invalid_nosetoptions.phpt test_valid_add1.phpt test_valid_add2.phpt test_valid_replace.phpt

From: Date: Mon, 28 Mar 2005 05:54:46 +0000
Subject: cvs: pear /PEAR_PackageFileManager/tests PEAR_PackageFileManager_TestCase_addConfigureOption.php testsuite.php
/PEAR_PackageFileManager/tests/addConfigureOption test_invalid_nosetoptions.phpt test_valid_add1.phpt test_valid_add2.phpt test_valid_replace.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30720@lists.php.net to get a copy of this message
cellog Mon Mar 28 00:54:46 2005 EDT Added files: /pear/PEAR_PackageFileManager/tests/addConfigureOption test_invalid_nosetoptions.phpt test_valid_add1.phpt test_valid_add2.phpt test_valid_replace.phpt Removed files: /pear/PEAR_PackageFileManager/tests PEAR_PackageFileManager_TestCase_addConfigureOption.php Modified files: /pear/PEAR_PackageFileManager/tests testsuite.php Log: more conversion of phpunit -> phpt http://cvs.php.net/diff.php/pear/PEAR_PackageFileManager/tests/testsuite.php?r1=1.31&r2=1.32&ty=u Index: pear/PEAR_PackageFileManager/tests/testsuite.php diff -u pear/PEAR_PackageFileManager/tests/testsuite.php:1.31 pear/PEAR_PackageFileManager/tests/testsuite.php:1.32 --- pear/PEAR_PackageFileManager/tests/testsuite.php:1.31 Mon Mar 28 00:48:00 2005 +++ pear/PEAR_PackageFileManager/tests/testsuite.php Mon Mar 28 00:54:46 2005 @@ -4,7 +4,7 @@ * HTML output for PHPUnit suite tests. * * Copied for PEAR_PackageFileManager from HTML_CSS - * @version $Id: testsuite.php,v 1.31 2005/03/28 05:48:00 cellog Exp $ + * @version $Id: testsuite.php,v 1.32 2005/03/28 05:54:46 cellog Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_CSS */ @@ -50,7 +50,6 @@ <?php $testcases = array( 'PEAR_PackageFileManager_TestCase_setOptions', - 'PEAR_PackageFileManager_TestCase_addConfigureOption', 'PEAR_PackageFileManager_TestCase_addDependency', 'PEAR_PackageFileManager_XMLOutput_TestCase_1', ); http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/addConfigureOption/test_invalid_nosetoptions.phpt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/addConfigureOption/test_invalid_nosetoptions.phpt +++ pear/PEAR_PackageFileManager/tests/addConfigureOption/test_invalid_nosetoptions.phpt --TEST-- PEAR_PackageFileManager->addConfigureOption, invalid --SKIPIF-- --FILE-- <?php require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $packagexml->addConfigureOption('frog', 'Sound a frog makes', 'ribbit'); $phpunit->assertErrors(array(array('package' => 'PEAR_Error', 'message' => 'PEAR_PackageFileManager Error: Run $managerclass->setOptions() before any other methods')), 'no setOptions() test' ); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/addConfigureOption/test_valid_add1.phpt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/addConfigureOption/test_valid_add1.phpt +++ pear/PEAR_PackageFileManager/tests/addConfigureOption/test_valid_add1.phpt --TEST-- PEAR_PackageFileManager->addConfigureOption, add test 1 --SKIPIF-- --FILE-- <?php require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $packagexml->setOptions(array('state' => 'alpha', 'version' => '1.0', 'packagedirectory' => dirname(dirname(__FILE__)), 'baseinstalldir' => 'Foo', 'packagefile' => 'test1_package.xml', 'filelistgenerator' => 'File')); $packagexml->addConfigureOption('frog', 'Sound a frog makes', 'ribbit'); $phpunit->assertEquals( array('name' => 'frog', 'prompt' => 'Sound a frog makes', 'default' => 'ribbit'), $packagexml->_packageXml['configure_options'][0], 'configure_options value wrong'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/addConfigureOption/test_valid_add2.phpt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/addConfigureOption/test_valid_add2.phpt +++ pear/PEAR_PackageFileManager/tests/addConfigureOption/test_valid_add2.phpt --TEST-- PEAR_PackageFileManager->addConfigureOption, add test 2 --SKIPIF-- --FILE-- <?php require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $packagexml->setOptions(array('state' => 'alpha', 'version' => '1.0', 'packagedirectory' => dirname(dirname(__FILE__)), 'baseinstalldir' => 'Foo', 'packagefile' => 'test1_package.xml', 'filelistgenerator' => 'File')); $packagexml->addConfigureOption('frog', 'Sound a frog makes'); $phpunit->assertEquals( array('name' => 'frog', 'prompt' => 'Sound a frog makes'), $packagexml->_packageXml['configure_options'][0], 'configure_options value wrong'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/addConfigureOption/test_valid_replace.phpt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/addConfigureOption/test_valid_replace.phpt +++ pear/PEAR_PackageFileManager/tests/addConfigureOption/test_valid_replace.phpt --TEST-- PEAR_PackageFileManager->addConfigureOption, update existing configure_option --SKIPIF-- --FILE-- <?php require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $packagexml->setOptions(array('state' => 'alpha', 'version' => '1.0', 'packagedirectory' => dirname(dirname(__FILE__)), 'baseinstalldir' => 'Foo', 'packagefile' => 'test1_package.xml', 'filelistgenerator' => 'File')); $packagexml->addConfigureOption('frog', 'Sound a frog makes', 'ribbit'); $phpunit->assertEquals( array(array('name' => 'frog', 'prompt' => 'Sound a frog makes', 'default' => 'ribbit')), $packagexml->_packageXml['configure_options'], 'configure_options value wrong'); $packagexml->addConfigureOption('frog', 'Sound a frog makes'); $phpunit->assertEquals( array(array('name' => 'frog', 'prompt' => 'Sound a frog makes')), $packagexml->_packageXml['configure_options'], 'configure_options value wrong'); echo 'tests done'; ?> --EXPECT-- tests done

« previous php.pear.cvs (#30720) next »