getDirOwner() public method

Get the owner of the file. Works on POSIX file systems only
public getDirOwner ( ) : array
return array
Esempio n. 1
0
 public function testGetOwnerAndGroup()
 {
     $f = new File(__DIR__ . '/../tmp/access.txt');
     $this->assertTrue(array_key_exists('name', $f->getOwner()));
     $this->assertTrue(array_key_exists('name', $f->getDirOwner()));
     $this->assertTrue(array_key_exists('name', $f->getGroup()));
     $this->assertTrue(array_key_exists('name', $f->getDirGroup()));
     $this->assertTrue(array_key_exists('name', $f->getUser()));
 }