private function createEntry($uuid, \DateTime $date) { $dom = new Document(); $test = $dom->createRoot('test'); $test->setAttribute('uuid', $uuid); $path = Workspace::getWorkspacePath() . $date->format('/Y/m/d/') . '/' . $uuid . '.xml'; if (!$this->filesystem->exists(dirname($path))) { $this->filesystem->mkdir(dirname($path)); } $dom->save($path); return $this->createCollection($uuid, $date); }
protected static function getWorkspacePath() { return Workspace::getWorkspacePath(); }
public function tearDown() { Workspace::cleanWorkspace(); }