• This project
    • Loading...
  • Sign in

najixian / xt_dc_admin · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • xt_dc_admin
  • vendor
  • Qiniu
  • tests
  • Qiniu
  • Tests
  • Crc32Test.php
  • 文件恢复
    55887bb8
    by teemitop
    2018-12-26 17:31:50 +0800  
    Browse Files
Crc32Test.php 412 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?php
namespace Qiniu\Tests;

use Qiniu;

class Crc32Test extends \PHPUnit_Framework_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);
    }
}