public function testGetDescendants() { $this->assertEquals(array(), $this->helper->getDescendants(null)); $expected = array('/a/b', '/a/b/c', '/a/b/d', '/a/b/e', '/a/f', '/a/f/g', '/a/f/g/h', '/a/i'); $this->assertEquals($expected, $this->helper->getDescendants('/a')); $expected = array('/a/b', '/a/f', '/a/i'); $this->assertEquals($expected, $this->helper->getDescendants('/a', 1)); }