1--TEST--
2PEAR_PackageFileManager->importOptions, valid test
3--SKIPIF--
4--FILE--
5<?php
6require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc';
7$res = $pfm->importOptions(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'test1_package.xml');
8$phpunit->assertTrue($res, 'return');
9$phpunit->assertEquals(array (
10  'packagefile' => 'package.xml',
11  'doctype' => 'http://pear.php.net/dtd/package-1.0',
12  'filelistgenerator' => 'File',
13  'license' => 'PHP License',
14  'changelogoldtonew' => true,
15  'roles' =>
16  array (
17    'h' => 'src',
18    'c' => 'src',
19    'cpp' => 'src',
20    'm4' => 'src',
21    'w32' => 'src',
22    'dll' => 'ext',
23    'php' => 'php',
24    'html' => 'doc',
25    '*' => 'data',
26  ),
27  'dir_roles' =>
28  array (
29    'docs' => 'doc',
30    'examples' => 'doc',
31    'tests' => 'test',
32  ),
33  'exceptions' =>
34  array (
35  ),
36  'installexceptions' =>
37  array (
38  ),
39  'installas' =>
40  array (
41  ),
42  'platformexceptions' =>
43  array (
44  ),
45  'scriptphaseexceptions' =>
46  array (
47  ),
48  'ignore' =>
49  array (
50  ),
51  'include' => false,
52  'deps' =>
53  array (
54    1 =>
55    array (
56      'type' => 'pkg',
57      'rel' => 'ge',
58      'version' => '1.1',
59      'optional' => 'no',
60      'name' => 'PEAR',
61    ),
62  ),
63  'maintainers' =>
64  array (
65    0 =>
66    array (
67      'handle' => 'cellog',
68      'name' => 'Greg Beaver',
69      'email' => 'cellog@users.sourceforge.net',
70      'role' => 'lead',
71    ),
72  ),
73  'notes' => 'bugfix release
74
75- fixed #8: notices if a package has no dependencies
76',
77  'changelognotes' => false,
78  'outputdirectory' => false,
79  'pathtopackagefile' => false,
80  'lang' => 'en',
81  'configure_options' =>
82  array (
83  ),
84  'replacements' =>
85  array (
86  ),
87  'pearcommonclass' => 'PEAR_PackageFileManager_ComplexGenerator',
88  'simpleoutput' => false,
89  'addhiddenfiles' => false,
90  'cleardependencies' => false,
91  'package' => 'PEAR_PackageFileManager',
92  'summary' => 'PEAR_PackageFileManager takes an existing package.xml file and updates it with a new filelist and changelog',
93  'description' => 'This package revolutionizes the maintenance of PEAR packages.  With a few parameters,
94the entire package.xml is automatically updated with a listing of all files in a package.
95Features include
96 - reads in an existing package.xml file, and only changes the release/changelog
97 - a plugin system for retrieving files in a directory.  Currently two plugins
98   exist, one for standard recursive directory content listing, and one that
99   reads the CVS/Entries files and generates a file listing based on the contents
100   of a checked out CVS repository
101 - incredibly flexible options for assigning install roles to files/directories
102 - ability to ignore any file based on a * ? wildcard-enabled string
103 - ability to manage dependencies
104 - can output the package.xml in any directory, and read in the package.xml
105   file from any directory.
106 - can specify a different name for the package.xml file
107',
108  'date' => '2003-10-14',
109  'version' => '1.1.0',
110  'state' => 'stable',
111), $pfm->getOptions(), 'options');
112echo 'tests done';
113?>
114--EXPECT--
115tests done