Skip to content

Commit 875dc92

Browse files
carusogabrieljmikola
authored andcommitted
Bump PHPUnit to 4.8.36 and use PSR-1 class
1 parent 3034a38 commit 875dc92

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"ext-mongodb": "^1.3.0"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "^4.8"
19+
"phpunit/phpunit": "^4.8.36"
2020
},
2121
"autoload": {
2222
"psr-4": { "MongoDB\\": "src/" },

tests/Model/CachingIteratorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
use MongoDB\Model\CachingIterator;
66
use Exception;
7+
use PHPUnit\Framework\TestCase;
78

8-
class CachingIteratorTest extends \PHPUnit_Framework_TestCase
9+
class CachingIteratorTest extends TestCase
910
{
1011
/**
1112
* Sanity check for all following tests.

tests/PedantryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace MongoDB\Tests;
44

5+
use PHPUnit\Framework\TestCase as BaseTestCase;
56
use RecursiveDirectoryIterator;
67
use RecursiveIteratorIterator;
78
use ReflectionClass;
@@ -11,7 +12,7 @@
1112
/**
1213
* Pedantic tests that have nothing to do with functional correctness.
1314
*/
14-
class PedantryTest extends \PHPUnit_Framework_TestCase
15+
class PedantryTest extends BaseTestCase
1516
{
1617
/**
1718
* @dataProvider provideProjectClassNames

tests/TestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
use MongoDB\Driver\ReadConcern;
66
use MongoDB\Driver\ReadPreference;
77
use MongoDB\Driver\WriteConcern;
8+
use PHPUnit\Framework\TestCase as BaseTestCase;
89
use ReflectionClass;
910
use stdClass;
1011

11-
abstract class TestCase extends \PHPUnit_Framework_TestCase
12+
abstract class TestCase extends BaseTestCase
1213
{
1314
public function provideInvalidDocumentValues()
1415
{

0 commit comments

Comments
 (0)