/** * Shortcut for RM_Test_More::instance() * * @return RM_Test_More */ function T() { return RM_Test_More::instance(); }
} if ($ka[$i] != $kb[$i]) { return $this->_stack_push($keys[$i], array()); } $this->_stack_push($keys[$i]); if (!isset($opts['rec'])) { if (!$this->_compare_vals($a[$keys[$i]], $b[$keys[$i]])) { return $this->_stack_push(array($a[$keys[$i]], $b[$keys[$i]])); } } else { if (!$this->_compare($a[$keys[$i]], $b[$keys[$i]], $opts, $l + 1)) { return 0; } } $this->_stack_pop(); } return 1; } // private function _compare_vals($a, $b) { if (is_numeric($a) && is_numeric($b)) { return abs($a - $b) < 0.0001; } return "{$a}" == "{$b}"; } } //** Entry point header('Content-Type: text/plain'); register_shutdown_function(array(RM_Test_More::instance(), 'end'));