public function vfsStreamFileTestCase::rename in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamFileTestCase.php \org\bovigo\vfs\vfsStreamFileTestCase::rename()
test renaming the directory
@test
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamFileTestCase.php, line 64
Class
Namespace
org\bovigo\vfsCode
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'));
}