Skip to content

Commit 0c4a7b6

Browse files
carusogabrielbshaffer
authored andcommitted
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase (googleapis#1336)
1 parent b69b8ac commit 0c4a7b6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"guzzlehttp/psr7": "^1.2"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "~4",
19+
"phpunit/phpunit": "~4.8.36",
2020
"squizlabs/php_codesniffer": "~2.3",
2121
"symfony/dom-crawler": "~2.1",
2222
"symfony/css-selector": "~2.1",

tests/BaseTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
use League\Flysystem\Adapter\Local;
2121
use League\Flysystem\Filesystem;
2222
use Cache\Adapter\Filesystem\FilesystemCachePool;
23+
use PHPUnit\Framework\TestCase;
2324

24-
class BaseTest extends PHPUnit_Framework_TestCase
25+
class BaseTest extends TestCase
2526
{
2627
private $key;
2728
private $client;

tests/Google/ServiceTest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* under the License.
1919
*/
2020

21+
use PHPUnit\Framework\TestCase;
22+
2123
class TestModel extends Google_Model
2224
{
2325
public function mapTypes($array)
@@ -36,7 +38,7 @@ class TestService extends Google_Service
3638
public $batchPath = 'batch/test';
3739
}
3840

39-
class Google_ServiceTest extends PHPUnit_Framework_TestCase
41+
class Google_ServiceTest extends TestCase
4042
{
4143
public function testCreateBatch()
4244
{

0 commit comments

Comments
 (0)