function run() { if (isset($_GET['perform'])) { if (is_array($_GET['perform'])) { foreach (array_keys($_GET['perform']) as $path) { $this->perform(lmbTestTreePath::normalize($path)); } } else { $this->perform(lmbTestTreePath::normalize($_GET['perform'])); } } elseif (isset($_GET['browse'])) { $this->browse(lmbTestTreePath::normalize($_GET['browse'])); } else { $this->browse(); } }
function testNormalize() { $this->assertEqual(lmbTestTreePath::normalize('/0////'), '/0'); $this->assertEqual(lmbTestTreePath::normalize('/0/1/../'), '/0'); }
function findChildByPath($path) { return $this->_traverseArrayPath(lmbTestTreePath::toArray($path)); }