七牛云

This commit is contained in:
“wanyongkang”
2024-02-29 10:30:38 +08:00
parent ea969dafca
commit 3d3f588690
521 changed files with 13990 additions and 41150 deletions

View 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);
}
}