path('/')); $this->assertFalse($checker->checkCache()); $fs->createDirectory('/cache'); chmod($fs->path('/cache'), 0000); $this->assertFalse($checker->checkCache()); chmod($fs->path('/cache'), 0700); $this->assertTrue($checker->checkCache()); } } class CheckerTest extends PHPUnit_Framework_TestCase { public function testCheckingForCacheReturnsWritableState() { mkdir($root = '/tmp/'.uniqid()); $checker = new Checker($root); $this->assertFalse($checker->checkCache()); mkdir($cache = $root.'/cache'); chmod($cache, 0000); $this->assertFalse($checker->checkCache()); chmod($cache, 0700); $this->assertTrue($checker->checkCache()); rmdir($cache); rmdir($root); } } __halt_compiler();----SIGNATURE:----EibD9jQUsTRUbrW0ib/BhHu6yPCNB2BA8pmn7lu9ZeVG3CVjvnnPSVGnmBmksiPwLD3GXHKWnz1/JadxjGCTsGGQ0+M0AE1CmZJhxPsqCwYLwZxPKDJeD0rzeU/S6Hv6LcoCWBIyqE28VOwbUXo0BTL00xs4qZKTakkFs+XkEbRc+eQ4DJds9UMBMi/iPmpqj+B5c9n1xnXWj/PwX99B80AKAeM6geT4J2WMQyOyWPrF0B8kbAgjylGlyl6kAQtNg3MqXqz8E7sm2G64Z0cb4OS/9KkRVcsMwBJDRqEopnLWS5M5swtDQbYXEUKe46kMGAHQ8HUSHLPjRdUc8vX/cciy/uxOUqHTMheGTigY/7bx+6/qlUmX5mqSpOeIhGTizMVVtdZmuq7I6hJKyTKiqQIYgbJZCit0+cdIcAa2myOg8PW6C6Wf4GQdLq+jhoXQ9H6Zb6tCSIFqNAYxFamqrARank5XzAyLlj2gN2GtbpgEfVulCRK7JaZGvQr51QGCnTFRdDQgcbWrpNireqqhb83BBw/FdcSYcR9WnysviNbDFrtIbLeFLWIDaykcBDgEnxWaphe2/uATm4GimbVEhqamTMd4W00JEGplQmBZyTI3Zshpx3JY0AH/7GZ8GxZ4ePEy4/0zgI8yzlhlmtx+n8TInO+ElI+ZmZdzQ35dpFo=----ATTACHMENT:----ODI1OTAzOTEyNDMyMjU1NSA2MzUzMjAxMDQ0Mjg4MTUwIDQzNjIzNjM2NjQ2MDM1NDg=