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