public function testReadable() { if (Sys::isWin()) { //skip('This functionality is not working on Windows.'); return false; } if (Sys::isRoot()) { skip('These tests don\'t work when run as root'); } isFalse(FS::readable('/no/such/file')); $dirname = dirname(__FILE__); $file = $dirname . '/test8'; touch($file); isTrue(is_readable($file)); FS::readable($file, false); clearstatcache(); isFalse(is_readable($file)); FS::readable($file, true); clearstatcache(); isTrue(is_readable($file)); unlink($file); }