<?php namespace Tests; use App\Utils\API\Rocketgo; use PHPUnit\Framework\TestCase; /** * 自用测试类 */ class TestFunction extends TestCase { public function testPhone() { $res = HttpBase::httpclient([], '/api/text/classifyPhoneOnlineHistory', 'GET', null, 'form'); $this->assertEquals(1,$res['code']); } }