public function setUp() { $this->root = vfsStream::setup(self::STORAGE_DIR); $this->file = vfsStream::url(self::STORAGE_DIR) . DIRECTORY_SEPARATOR . 'test.xml'; $this->object = new XmlWriter($this->file); }