cvs: pear /PEAR_PackageFileManager/tests/importOptions test_valid.phpt

From: Date: Mon, 28 Mar 2005 06:53:05 +0000
Subject: cvs: pear /PEAR_PackageFileManager/tests/importOptions test_valid.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30728@lists.php.net to get a copy of this message
cellog Mon Mar 28 01:53:05 2005 EDT Added files: /pear/PEAR_PackageFileManager/tests/importOptions test_valid.phpt Log: test for importOptions() http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/importOptions/test_valid.phpt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/importOptions/test_valid.phpt +++ pear/PEAR_PackageFileManager/tests/importOptions/test_valid.phpt --TEST-- PEAR_PackageFileManager->importOptions, valid test --SKIPIF-- --FILE-- <?php require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $packagexml->_options['pearcommonclass'] = 'PEAR_Common'; $res = $packagexml->importOptions(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'test1_package.xml'); $phpunit->assertTrue($res, 'return'); $phpunit->assertEquals(array ( 'packagefile' => 'package.xml', 'doctype' => 'http://pear.php.net/dtd/package-1.0', 'filelistgenerator' => 'file', 'license' => 'PHP License', 'changelogoldtonew' => true, 'roles' => array ( 'php' => 'php', 'html' => 'doc', '*' => 'data', ), 'dir_roles' => array ( 'docs' => 'doc', 'examples' => 'doc', 'tests' => 'test', ), 'exceptions' => array ( ), 'installexceptions' => array ( ), 'installas' => array ( ), 'platformexceptions' => array ( ), 'scriptphaseexceptions' => array ( ), 'ignore' => array ( ), 'include' => false, 'deps' => array ( 1 => array ( 'type' => 'pkg', 'rel' => 'ge', 'version' => '1.1', 'optional' => 'no', 'name' => 'PEAR', ), ), 'maintainers' => array ( 0 => array ( 'handle' => 'cellog', 'name' => 'Greg Beaver', 'email' => 'cellog@users.sourceforge.net', 'role' => 'lead', ), ), 'notes' => 'bugfix release - fixed #8: notices if a package has no dependencies ', 'changelognotes' => false, 'outputdirectory' => false, 'pathtopackagefile' => false, 'lang' => 'en', 'configure_options' => array ( ), 'replacements' => array ( ), 'pearcommonclass' => 'PEAR_Common', 'simpleoutput' => false, 'addhiddenfiles' => false, 'cleardependencies' => false, 'package' => 'PEAR_PackageFileManager', 'summary' => 'PEAR_PackageFileManager takes an existing package.xml file and updates it with a new filelist and changelog', 'description' => 'This package revolutionizes the maintenance of PEAR packages. With a few parameters, the entire package.xml is automatically updated with a listing of all files in a package. Features include - reads in an existing package.xml file, and only changes the release/changelog - a plugin system for retrieving files in a directory. Currently two plugins exist, one for standard recursive directory content listing, and one that reads the CVS/Entries files and generates a file listing based on the contents of a checked out CVS repository - incredibly flexible options for assigning install roles to files/directories - ability to ignore any file based on a * ? wildcard-enabled string - ability to manage dependencies - can output the package.xml in any directory, and read in the package.xml file from any directory. - can specify a different name for the package.xml file ', 'date' => '2003-10-14', 'version' => '1.1.0', 'state' => 'stable', ), $packagexml->getOptions(), 'options'); echo 'tests done'; ?> --EXPECT-- tests done

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