From f51b3c0cb1de63b4aec76fb6ff936eade22786bf Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Fri, 31 Oct 2003 22:30:37 +0000 Subject: [PATCH] fix test 1, add in nifty SKIPIF code --- pear/tests/pear_installer1.phpt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 -- 2.50.1