summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2004-04-30 01:57:35 +0000
committerGreg Beaver <cellog@php.net>2004-04-30 01:57:35 +0000
commit65ecfc28cf28bbbffcf0e9898d9293021d3c04c2 (patch)
treec12725ac8845bb8d03ec8de392598fc70880b19f
parent66f14d696e82b78bb7f9087a9cc2c5e99d4cb515 (diff)
downloadphp-git-65ecfc28cf28bbbffcf0e9898d9293021d3c04c2.tar.gz
fix unit test with PEAR 1.3.1
-rw-r--r--pear/tests/pear_common_analyzeSC.phpt5
1 files changed, 4 insertions, 1 deletions
diff --git a/pear/tests/pear_common_analyzeSC.phpt b/pear/tests/pear_common_analyzeSC.phpt
index 720c1a6c1e..9bb689854e 100644
--- a/pear/tests/pear_common_analyzeSC.phpt
+++ b/pear/tests/pear_common_analyzeSC.phpt
@@ -108,6 +108,7 @@ fclose($fp);
$ret = PEAR_Common::analyzeSourceCode($testdir . DIRECTORY_SEPARATOR . 'test5.php');
echo "sixth test: returns false with valid PHP? ";
echo $ret ? "no\n" : "yes\n";
+$ret['source_file'] = str_replace(array(dirname(__FILE__),DIRECTORY_SEPARATOR), array('', '/'), $ret['source_file']);
var_dump($ret);
unlink($testdir . DIRECTORY_SEPARATOR . 'test5.php');
@@ -121,7 +122,9 @@ second test: returns false with invalid PHP? yes
fourth test: returns false with invalid PHP? yes
fifth test: returns false with invalid PHP? yes
sixth test: returns false with valid PHP? no
-array(5) {
+array(6) {
+ ["source_file"]=>
+ string(36) "/pear_common_analyzeSCtest/test5.php"
["declared_classes"]=>
array(2) {
[0]=>