public function testReturnsFalseIfNeitherConfigNorModuleDirectoriesExistAndRootIsNotWritable()
{
if (!file_exists('/var/log') || !is_dir('/var/log') || is_writable('/var/log')) {
$this->markTestSkipped('Cannot test, as either /var/log does not exist or is writable');
}
chdir('/var/log');
// Instantiating new controller, as constructor caches getcwd()
$controller = new FsPermissionsController();
$result = $controller->fsPermissionsAction();
$this->assertInstanceOf('ZF\\ContentNegotiation\\ViewModel', $result);
$fsPerms = $result->getVariable('fs_perms', null);
$this->assertNotNull($fsPerms);
$this->assertFalse($fsPerms);
}