Skip to content

Commit 9493670

Browse files
committed
change test base class
1 parent efea515 commit 9493670

17 files changed

+51
-17
lines changed

tests/Qiniu/Tests/AuthTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ function time()
1111
}
1212

1313
namespace Qiniu\Tests {
14+
use PHPUnit\Framework\TestCase;
15+
1416
use Qiniu\Auth;
1517
use Qiniu\Http\Header;
1618

1719
// @codingStandardsIgnoreEnd
1820

19-
class AuthTest extends \PHPUnit_Framework_TestCase
21+
class AuthTest extends TestCase
2022
{
2123

2224
public function testSign()

tests/Qiniu/Tests/Base64Test.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?php
22
namespace Qiniu\Tests;
33

4+
use PHPUnit\Framework\TestCase;
5+
46
use Qiniu;
57

6-
class Base64Test extends \PHPUnit_Framework_TestCase
8+
class Base64Test extends TestCase
79
{
810
public function testUrlSafe()
911
{

tests/Qiniu/Tests/BucketTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
namespace Qiniu\Tests;
44

5+
use PHPUnit\Framework\TestCase;
6+
57
use Qiniu\Config;
68
use Qiniu\Storage\BucketManager;
79

8-
class BucketTest extends \PHPUnit_Framework_TestCase
10+
class BucketTest extends TestCase
911
{
1012
protected $bucketManager;
1113
protected $dummyBucketManager;

tests/Qiniu/Tests/CdnManagerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88

99
namespace Qiniu\Tests;
1010

11+
use PHPUnit\Framework\TestCase;
12+
1113
use Qiniu\Cdn\CdnManager;
1214
use Qiniu\Http\Client;
1315

14-
class CdnManagerTest extends \PHPUnit_Framework_TestCase
16+
class CdnManagerTest extends TestCase
1517
{
1618
protected $cdnManager;
1719
protected $encryptKey;

tests/Qiniu/Tests/ConfigTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?php
22

33
namespace Qiniu\Tests {
4+
use PHPUnit\Framework\TestCase;
5+
46
use Qiniu\Config;
57

6-
class ConfigTest extends \PHPUnit_Framework_TestCase
8+
class ConfigTest extends TestCase
79
{
810
protected $accessKey;
911
protected $bucketName;

tests/Qiniu/Tests/Crc32Test.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?php
22
namespace Qiniu\Tests;
33

4+
use PHPUnit\Framework\TestCase;
5+
46
use Qiniu;
57

6-
class Crc32Test extends \PHPUnit_Framework_TestCase
8+
class Crc32Test extends TestCase
79
{
810
public function testData()
911
{

tests/Qiniu/Tests/DownloadTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?php
22
namespace Qiniu\Tests;
33

4+
use PHPUnit\Framework\TestCase;
5+
46
use Qiniu\Http\Client;
57

6-
class DownloadTest extends \PHPUnit_Framework_TestCase
8+
class DownloadTest extends TestCase
79
{
810
public function test()
911
{

tests/Qiniu/Tests/EntryTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?php
22
namespace Qiniu\Tests;
33

4+
use PHPUnit\Framework\TestCase;
5+
46
use Qiniu;
57

6-
class EntryTest extends \PHPUnit_Framework_TestCase
8+
class EntryTest extends TestCase
79
{
810
public function testNormal()
911
{

tests/Qiniu/Tests/EtagTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?php
22
namespace Qiniu\Tests;
33

4+
use PHPUnit\Framework\TestCase;
5+
46
use Qiniu\Etag;
57

6-
class EtagTest extends \PHPUnit_Framework_TestCase
8+
class EtagTest extends TestCase
79
{
810
public function test0M()
911
{

tests/Qiniu/Tests/FopTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<?php
22
namespace Qiniu\Tests;
33

4+
use PHPUnit\Framework\TestCase;
5+
46
use Qiniu\Processing\Operation;
57
use Qiniu\Processing\PersistentFop;
68

7-
class FopTest extends \PHPUnit_Framework_TestCase
9+
class FopTest extends TestCase
810
{
911
public function testExifPub()
1012
{

0 commit comments

Comments
 (0)