public function vfsStreamFileTestCase::content 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::content()
test setting and getting the content of a file
@test
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamFileTestCase.php, line 50
Class
Namespace
org\bovigo\vfsCode
public function content() {
$this
->assertNull($this->file
->getContent());
$this
->assertSame($this->file, $this->file
->setContent('bar'));
$this
->assertEquals('bar', $this->file
->getContent());
$this
->assertSame($this->file, $this->file
->withContent('baz'));
$this
->assertEquals('baz', $this->file
->getContent());
}