cvs: pear-core /tests/System bug4095.phpt

From: Date: Fri, 15 Apr 2005 04:45:16 +0000
Subject: cvs: pear-core /tests/System bug4095.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-31176@lists.php.net to get a copy of this message
cellog Fri Apr 15 00:45:16 2005 EDT Added files: /pear-core/tests/System bug4095.phpt Log: new test for Bug #4095 - System::rm does not handle links correctly http://cvs.php.net/co.php/pear-core/tests/System/bug4095.phpt?r=1.1&p=1 Index: pear-core/tests/System/bug4095.phpt +++ pear-core/tests/System/bug4095.phpt --TEST-- System test Bug #4095: System::rm does not handle links correctly --SKIPIF-- <?php if (strtolower(substr(PHP_OS, 0, 3)) == 'win') { echo 'skip can only run test on non-windows machines'; } ?> --FILE-- <?php mkdir /tmp/system_link_test; touch /tmp/system_link_test/0; touch /tmp/system_link_test/1; mkdir /tmp/system_link_test/sub1; mkdir /tmp/system_link_test/sub1/sub2; cp -la /tmp/system_link_test/sub1 /tmp/system_link_test/link2; require_once 'System.php'; System::rm(array('-r','/tmp/system_link_test')); if (file_exists('/tmp/system_link_test')) { echo "TEST FAILED"; exit; } echo "TEST SUCCEEDED"; ?> --EXPECT-- TEST SUCCEEDED

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