File "ShaHmac1SignerTest.php"

Full Path: /www/wwwroot/shphe-en.com/smsapi/api_sdk/tests/Core/Auth/ShaHmac1SignerTest.php
File size: 440 bytes
MIME-type: --
Charset: utf-8

<?php

namespace Aliyun\Test\Core\Auth;
use PHPUnit\Framework\TestCase;
use Aliyun\Core\Config;
use Aliyun\Core\Auth\ShaHmac1Signer;

class ShaHmac1SignerTest extends TestCase
{
    public function setUp() {
        Config::load();
    }

    public function testShaHmac1Signer()
	{
		$signer = new ShaHmac1Signer();
		$this->assertEquals("33nmIV5/p6kG/64eLXNljJ5vw84=",$signer->signString("this is a ShaHmac1 test.", "accessSecret"));
	}
}