public function testToString() { $file = new File(vfsStream::url('root/somefile.txt')); $this->assertEquals('PHPUNIT_CONTENT', $file->toString()); }