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