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

From: Date: Fri, 30 Apr 2004 02:06:11 +0000
Subject: cvs: php-src /pear/tests pear_common_buildProvidesArray.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-19008@lists.php.net to get a copy of this message
cellog Thu Apr 29 22:06:11 2004 EDT Modified files: /php-src/pear/tests pear_common_buildProvidesArray.phpt Log: fix unit test to work with 1.3.2 (which will be needed) http://cvs.php.net/diff.php/php-src/pear/tests/pear_common_buildProvidesArray.phpt?r1=1.2&r2=1.3&ty=u Index: php-src/pear/tests/pear_common_buildProvidesArray.phpt diff -u php-src/pear/tests/pear_common_buildProvidesArray.phpt:1.2 php-src/pear/tests/pear_common_buildProvidesArray.phpt:1.3 --- php-src/pear/tests/pear_common_buildProvidesArray.phpt:1.2 Sat Nov 29 18:36:46 2003 +++ php-src/pear/tests/pear_common_buildProvidesArray.phpt Thu Apr 29 22:06:11 2004 @@ -54,6 +54,7 @@ $ret = PEAR_Common::analyzeSourceCode($testdir . DIRECTORY_SEPARATOR . 'test5.php'); echo "pre-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'); $common = new PEAR_Common; @@ -65,7 +66,9 @@ --POST-- --EXPECT-- pre-test: returns false with valid PHP? no -array(5) { +array(6) { + ["source_file"]=> + string(45) "/pear_common_buildProvidesArraytest/test5.php" ["declared_classes"]=> array(2) { [0]=> @@ -110,14 +113,18 @@ ["provides"]=> array(4) { ["class;test2"]=> - array(2) { + array(3) { + ["file"]=> + string(9) "test5.php" ["type"]=> string(5) "class" ["name"]=> string(5) "test2" } ["class;blah"]=> - array(3) { + array(4) { + ["file"]=> + string(9) "test5.php" ["type"]=> string(5) "class" ["name"]=> @@ -126,14 +133,18 @@ string(5) "test2" } ["function;test"]=> - array(2) { + array(3) { + ["file"]=> + string(9) "test5.php" ["type"]=> string(8) "function" ["name"]=> string(4) "test" } ["function;fool"]=> - array(2) { + array(3) { + ["file"]=> + string(9) "test5.php" ["type"]=> string(8) "function" ["name"]=>

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