diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 9f5aa8ba60..f8efd324c9 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -9388,6 +9388,7 @@ class upgradeModel extends model } /** + * 检查是否包含一致性错误。 * Check has consistency error or not. * * @access public diff --git a/module/upgrade/test/upgrade.class.php b/module/upgrade/test/upgrade.class.php index 7d8de203af..274d92997d 100644 --- a/module/upgrade/test/upgrade.class.php +++ b/module/upgrade/test/upgrade.class.php @@ -28,4 +28,18 @@ class upgradeTest } return trim($return, ';'); } + + /** + * __call魔术方法,如果比较简单的方法可以直接调用,不需要单独写方法。 + * __call magic method, if the method is simple, you can call it directly, no need to write a method. + * + * @param string $method + * @param array $args + * @access public + * @return mixed + */ + public function __call(string $method, array $args): mixed + { + return $this->objectModel->$method($args); + } } diff --git a/module/upgrade/test/upgrade.php b/module/upgrade/test/upgrade.php deleted file mode 100644 index c695070b27..0000000000 --- a/module/upgrade/test/upgrade.php +++ /dev/null @@ -1,28 +0,0 @@ -objectModel = $tester->loadModel('upgrade'); - } - - /** - * __call魔术方法,如果比较简单的方法可以直接调用,不需要单独写方法。 - * __call magic method, if the method is simple, you can call it directly, no need to write a method. - * - * @param string $method - * @param array $args - * @access public - * @return mixed - */ - public function __call(string $method, array $args): mixed - { - return $this->objectModel->$method($args); - } -}