assertTrue($response, sprintf('用户[%s]具备等级[%s]的升级要求', $uid, $level)); } /** * 测试“判断是否达到升级条件” * @author lyh * @date 2019/4/18 * @description */ public function testCondition() { $response = Upgrade::condition(13); $this->assertArrayHasKey(0, $response); } }