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.
yanzong/vendor/qiniu/php-sdk/tests/Qiniu/Tests/Crc32Test.php

24 lines
426 B

11 months ago
<?php
namespace Qiniu\Tests;
6 months ago
use PHPUnit\Framework\TestCase;
11 months ago
use Qiniu;
6 months ago
class Crc32Test extends TestCase
11 months ago
{
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);
}
}