public function testWriteNew() { $access = new PhpStreamAccess($this->getStream()); $access->writeNew(); $this->assertEquals('new ', $this->getStream()->getBinary()); $this->getStream()->flush(); $access->writeNew(false); $this->assertEquals('new', $this->getStream()->getBinary()); }