/**
  * setting and retrieving permissions for a directory
  *
  * @test
  * @group  permissions
  */
 public function permissionsSet()
 {
     $this->dir = new vfsStreamDirectory('foo', 0755);
     $this->assertEquals(0755, $this->dir->getPermissions());
     $this->assertSame($this->dir, $this->dir->chmod(0700));
     $this->assertEquals(0700, $this->dir->getPermissions());
 }