Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 protected static function getWorkspacePath()
 {
     return Workspace::getWorkspacePath();
 }
Esempio n. 3
0
 public function tearDown()
 {
     Workspace::cleanWorkspace();
 }