cvs: pear-core(PEAR_1_4) /tests/PEAR_Command_Pickle/pickle test.phpt /tests/PEAR_Dependency2 setup.php.inc /tests/PEAR_Downloader_Package
setup.php.inc /tests/PEAR_Installer setup.php.inc
| From: | Pierre-Alain Joye | Date: | Tue, 18 Jul 2006 09:34:50 +0000 |
| Subject: | cvs: pear-core(PEAR_1_4) /tests/PEAR_Command_Pickle/pickle test.phpt /tests/PEAR_Dependency2 setup.php.inc /tests/PEAR_Downloader_Package setup.php.inc /tests/PEAR_Installer setup.php.inc |
||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4884@lists.php.net to get a copy of this message | ||
pajoye Tue Jul 18 09:34:50 2006 UTC
Modified files: (Branch: PEAR_1_4)
/pear-core/tests/PEAR_Command_Pickle/pickle test.phpt
/pear-core/tests/PEAR_Dependency2 setup.php.inc
/pear-core/tests/PEAR_Downloader_Package setup.php.inc
/pear-core/tests/PEAR_Installer setup.php.inc
Log:
- update date field tests, invalid dates are errors not warning
- fix tests when download_dir exits
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Command_Pickle/pickle/test.phpt?r1=1.4&r2=1.4.2.1&diff_format=u
Index: pear-core/tests/PEAR_Command_Pickle/pickle/test.phpt
diff -u pear-core/tests/PEAR_Command_Pickle/pickle/test.phpt:1.4
pear-core/tests/PEAR_Command_Pickle/pickle/test.phpt:1.4.2.1
--- pear-core/tests/PEAR_Command_Pickle/pickle/test.phpt:1.4 Fri Feb 3 04:55:10 2006
+++ pear-core/tests/PEAR_Command_Pickle/pickle/test.phpt Tue Jul 18 09:34:49 2006
@@ -20,8 +20,8 @@
$res = $command->run('pickle', array(), array());
chdir($savedir);
$phpunit->assertErrors(array(
- array('package' => 'PEAR_PackageFile_v2', 'message' =>
'Channel validator warning: field "date" - Release Date "2005-00-00" is not
today'),
- array('package' => 'PEAR_PackageFile_v2', 'message' =>
'Channel validator warning: field "date" - Release Date "2005-00-00" is not
today'),
+ array('package' => 'PEAR_PackageFile_v2', 'message' =>
'Channel validator error: field "date" - invalid release date
"2005-00-00"'),
+ array('package' => 'PEAR_PackageFile_v2', 'message' =>
'Channel validator error: field "date" - invalid release date
"2005-00-00"'),
array('package' => 'PEAR_PackageFile_v2', 'message' =>
'Channel validator warning: field "providesextension" - package name
"pecl_http" is different from extension name "http"'),
array('package' => 'PEAR_PackageFile_v2', 'message' =>
'Channel validator warning: field "providesextension" - package name
"pecl_http" is different from extension name "http"'),
array('package' => 'PEAR_PackageFile_v2', 'message' =>
'Channel validator warning: field "providesextension" - package name
"pecl_http" is different from extension name "http"'),
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Dependency2/setup.php.inc?r1=1.10&r2=1.10.2.1&diff_format=u
Index: pear-core/tests/PEAR_Dependency2/setup.php.inc
diff -u pear-core/tests/PEAR_Dependency2/setup.php.inc:1.10
pear-core/tests/PEAR_Dependency2/setup.php.inc:1.10.2.1
--- pear-core/tests/PEAR_Dependency2/setup.php.inc:1.10 Fri Feb 3 04:41:34 2006
+++ pear-core/tests/PEAR_Dependency2/setup.php.inc Tue Jul 18 09:34:49 2006
@@ -38,6 +38,14 @@
if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'cache')) {
mkdir($temp_path . DIRECTORY_SEPARATOR . 'cache');
}
+if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'temp')) {
+ mkdir($temp_path . DIRECTORY_SEPARATOR . 'temp');
+}
+if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'temp/download')) {
+ mkdir($temp_path . DIRECTORY_SEPARATOR . 'temp/download');
+}
+
+
// make the fake configuration - we'll use one of these and it should work
$config = serialize(array('master_server' => $server,
'preferred_state' => 'stable',
@@ -45,9 +53,12 @@
'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php',
'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext',
'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data',
+ 'download_dir' => $temp_path . DIRECTORY_SEPARATOR . 'temp/download',
'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc',
'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test',
- 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',));
+ 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',
+ 'temp_dir' => $temp_path . DIRECTORY_SEPARATOR . 'temp',
+));
touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf');
$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w');
fwrite($fp, $config);
@@ -85,4 +96,4 @@
$p = &new test_PEAR_Downloader_Package($downloader);
return $p;
}
-?>
\ No newline at end of file
+?>
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Downloader_Package/setup.php.inc?r1=1.10&r2=1.10.2.1&diff_format=u
Index: pear-core/tests/PEAR_Downloader_Package/setup.php.inc
diff -u pear-core/tests/PEAR_Downloader_Package/setup.php.inc:1.10
pear-core/tests/PEAR_Downloader_Package/setup.php.inc:1.10.2.1
--- pear-core/tests/PEAR_Downloader_Package/setup.php.inc:1.10 Fri Feb 3 04:34:36 2006
+++ pear-core/tests/PEAR_Downloader_Package/setup.php.inc Tue Jul 18 09:34:49 2006
@@ -38,6 +38,13 @@
if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'cache')) {
mkdir($temp_path . DIRECTORY_SEPARATOR . 'cache');
}
+if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'temp')) {
+ mkdir($temp_path . DIRECTORY_SEPARATOR . 'temp');
+}
+if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'temp/download')) {
+ mkdir($temp_path . DIRECTORY_SEPARATOR . 'temp/download');
+}
+
// make the fake configuration - we'll use one of these and it should work
$config = serialize(array('master_server' => $server,
'preferred_state' => 'stable',
@@ -45,9 +52,12 @@
'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php',
'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext',
'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data',
+ 'download_dir' => $temp_path . DIRECTORY_SEPARATOR . 'temp/download',
'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc',
'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test',
- 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',));
+ 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',
+ 'temp_dir' => $temp_path . DIRECTORY_SEPARATOR . 'temp',
+));
touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf');
$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w');
fwrite($fp, $config);
@@ -86,4 +96,4 @@
$p = &new test_PEAR_Downloader_Package($downloader);
return $p;
}
-?>
\ No newline at end of file
+?>
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Installer/setup.php.inc?r1=1.9&r2=1.9.2.1&diff_format=u
Index: pear-core/tests/PEAR_Installer/setup.php.inc
diff -u pear-core/tests/PEAR_Installer/setup.php.inc:1.9
pear-core/tests/PEAR_Installer/setup.php.inc:1.9.2.1
--- pear-core/tests/PEAR_Installer/setup.php.inc:1.9 Fri Feb 3 04:31:47 2006
+++ pear-core/tests/PEAR_Installer/setup.php.inc Tue Jul 18 09:34:50 2006
@@ -39,6 +39,14 @@
if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'cache')) {
mkdir($temp_path . DIRECTORY_SEPARATOR . 'cache');
}
+if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'temp')) {
+ mkdir($temp_path . DIRECTORY_SEPARATOR . 'temp');
+}
+if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'temp/download')) {
+ mkdir($temp_path . DIRECTORY_SEPARATOR . 'temp/download');
+}
+
+
// make the fake configuration - we'll use one of these and it should work
$config = serialize(array(
'preferred_state' => 'stable',
@@ -46,9 +54,12 @@
'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php',
'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext',
'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data',
+ 'download_dir' => $temp_path . DIRECTORY_SEPARATOR .
'temp/download_dir',
'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc',
'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test',
- 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',));
+ 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',
+ 'download_dir' => $temp_path . DIRECTORY_SEPARATOR . 'temp',
+));
touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf');
$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w');
fwrite($fp, $config);
@@ -83,4 +94,4 @@
}
$installer = &new test_PEAR_Installer($fakelog);
-?>
\ No newline at end of file
+?>