Пример #1
0
 public function testSetGroupRecursive()
 {
     $cf = $this->cf;
     $cf->createDir();
     $cf_sub = CFileHelper::get($cf->getRealPath() . '/' . uniqid('sub'));
     $cf_sub->create();
     $group_name = $cf->getGroup();
     $this->assertNotEquals($cf->setGroup($group_name, True), False);
     $cf_sub->delete();
 }
Пример #2
0
 public function testSetPermissionsRecursive()
 {
     $cf = $this->cf;
     $cf->createDir();
     $cf_sub = CFileHelper::get($cf->getRealPath() . '/' . uniqid('sub'));
     $cf_sub->create();
     $this->assertNotEquals($cf->setPermissions(770, True), False);
     $cf_sub->delete();
 }