You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
517 B
20 lines
517 B
11 months ago
|
<?php
|
||
|
|
||
|
|
||
|
namespace Alipay\EasySDK\Test\security\textrisk;
|
||
|
|
||
|
|
||
|
use Alipay\EasySDK\Kernel\Factory;
|
||
|
use Alipay\EasySDK\Test\TestAccount;
|
||
|
use PHPUnit\Framework\TestCase;
|
||
|
|
||
|
class ClientTest extends TestCase
|
||
|
{
|
||
|
public function testDetectContent(){
|
||
|
$account = new TestAccount();
|
||
|
Factory::setOptions($account->getTestAccount());
|
||
|
$result = Factory::security()->textRisk()->detect("test");
|
||
|
$this->assertEquals('10000', $result->code);
|
||
|
$this->assertEquals('Success', $result->msg);
|
||
|
}
|
||
|
}
|