summaryrefslogtreecommitdiff
path: root/pear/tests
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2004-06-01 13:22:28 +0000
committerGreg Beaver <cellog@php.net>2004-06-01 13:22:28 +0000
commit472de86f8dbdb44d597db7748e5b5930d778ffa7 (patch)
tree96c30bd039347538842ba1c232829a7bcb552189 /pear/tests
parent86953ab0f5b0b51122bf41a73a6fbd1129a8feec (diff)
downloadphp-git-472de86f8dbdb44d597db7748e5b5930d778ffa7.tar.gz
prepare for actual installable unit tests
Diffstat (limited to 'pear/tests')
-rw-r--r--pear/tests/pear_packager.phpt4
1 files changed, 4 insertions, 0 deletions
diff --git a/pear/tests/pear_packager.phpt b/pear/tests/pear_packager.phpt
index 3878784718..141fae06d4 100644
--- a/pear/tests/pear_packager.phpt
+++ b/pear/tests/pear_packager.phpt
@@ -83,6 +83,10 @@ function catchit($err)
echo "Caught error: " . $err->getMessage() . "\n";
}
ob_start();
+if (!file_exists(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'CVS')) {
+ mkdir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'CVS');
+ touch(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'CVS' . DIRECTORY_SEPARATOR . 'Root');
+}
$packager->package(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'package.xml');
$packager->package(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree' . DIRECTORY_SEPARATOR . 'package2.xml');
$stuff = str_replace(array(dirname(__FILE__) . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR), array('', '/'),