cvs: php-src /pear/tests pear_common_analyzeSC.phpt

From: Date: Fri, 30 Apr 2004 01:57:35 +0000
Subject: cvs: php-src /pear/tests pear_common_analyzeSC.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-19005@lists.php.net to get a copy of this message
cellog Thu Apr 29 21:57:35 2004 EDT Modified files: /php-src/pear/tests pear_common_analyzeSC.phpt Log: fix unit test with PEAR 1.3.1 http://cvs.php.net/diff.php/php-src/pear/tests/pear_common_analyzeSC.phpt?r1=1.3&r2=1.4&ty=u Index: php-src/pear/tests/pear_common_analyzeSC.phpt diff -u php-src/pear/tests/pear_common_analyzeSC.phpt:1.3 php-src/pear/tests/pear_common_analyzeSC.phpt:1.4 --- php-src/pear/tests/pear_common_analyzeSC.phpt:1.3 Sat Nov 29 14:43:05 2003 +++ php-src/pear/tests/pear_common_analyzeSC.phpt Thu Apr 29 21:57:35 2004 @@ -108,6 +108,7 @@ $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 @@ 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]=>

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