public function vfsStreamDirectoryTestCase::owner in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php \org\bovigo\vfs\vfsStreamDirectoryTestCase::owner()
setting and retrieving owner of a file
@test @group permissions
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamDirectoryTestCase.php, line 311
Class
Namespace
org\bovigo\vfsCode
public function owner() {
$this
->assertEquals(vfsStream::getCurrentUser(), $this->dir
->getUser());
$this
->assertTrue($this->dir
->isOwnedByUser(vfsStream::getCurrentUser()));
$this
->assertSame($this->dir, $this->dir
->chown(vfsStream::OWNER_USER_1));
$this
->assertEquals(vfsStream::OWNER_USER_1, $this->dir
->getUser());
$this
->assertTrue($this->dir
->isOwnedByUser(vfsStream::OWNER_USER_1));
}