Beispiel #1
0
 function testAutoCreateCD()
 {
     $tree = \arc\tree::expand();
     $tree->cd('foo')->nodeValue = 'bar';
     $collapsed = \arc\tree::collapse($tree);
     $this->assertTrue($collapsed == array('/foo/' => 'bar'));
 }
Beispiel #2
0
 public function serialize()
 {
     return serialize(\arc\tree::collapse($this));
 }