first commit
This commit is contained in:
23
vendor/qiniu/php-sdk/tests/Qiniu/Tests/Crc32Test.php
vendored
Executable file
23
vendor/qiniu/php-sdk/tests/Qiniu/Tests/Crc32Test.php
vendored
Executable file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace Qiniu\Tests;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
use Qiniu;
|
||||
|
||||
class Crc32Test extends TestCase
|
||||
{
|
||||
public function testData()
|
||||
{
|
||||
$a = '你好';
|
||||
$b = \Qiniu\crc32_data($a);
|
||||
$this->assertEquals('1352841281', $b);
|
||||
}
|
||||
|
||||
public function testFile()
|
||||
{
|
||||
$b = \Qiniu\crc32_file(__file__);
|
||||
$c = \Qiniu\crc32_file(__file__);
|
||||
$this->assertEquals($c, $b);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user