From: Greg Beaver Date: Fri, 31 Oct 2003 22:30:37 +0000 (+0000) Subject: fix test 1, add in nifty SKIPIF code X-Git-Tag: php-5.0.0b3RC1~808 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f51b3c0cb1de63b4aec76fb6ff936eade22786bf;p=php fix test 1, add in nifty SKIPIF code --- diff --git a/pear/tests/pear_installer1.phpt b/pear/tests/pear_installer1.phpt index 65fd5536fc..fe2516202b 100644 --- a/pear/tests/pear_installer1.phpt +++ b/pear/tests/pear_installer1.phpt @@ -1,7 +1,11 @@ --TEST-- PEAR_Installer test #1 --SKIPIF-- -skip + --FILE-- extractDownloadFileName($temp_path . DIRECTORY_SEPARATOR . 'user.conf', - $ui); +echo ($temp_path . DIRECTORY_SEPARATOR . 'user.conf' == + $installer->extractDownloadFileName($temp_path . DIRECTORY_SEPARATOR . 'user.conf', + $ui)) ? "yes\n" : "no\n"; var_dump($ui); echo 'invalid match: '; echo $installer->extractDownloadFileName('27', @@ -70,7 +75,8 @@ var_dump($res); --POST-- --EXPECT-- test extractDownloadFileName: -existing file: c:\web pages\chiara\testinstallertemp\user.confbool(false) +existing file: yes +bool(false) invalid match: 27 NULL valid match, no version: Testpackage