public function testDepthTwoLevelsWithAll() { $data = array('1' => '1.1', '2', '3' => array('3.1' => '3.1.1')); $result = Set::depth($data, array('all' => true)); $this->assertEqual(2, $result); }