/**
  * test renaming the directory
  *
  * @test
  */
 public function rename()
 {
     $this->file->rename('bar');
     $this->assertEquals('bar', $this->file->getName());
     $this->assertFalse($this->file->appliesTo('foo'));
     $this->assertFalse($this->file->appliesTo('foo/bar'));
     $this->assertTrue($this->file->appliesTo('bar'));
 }