Commit 875dc92f authored by Gabriel Caruso's avatar Gabriel Caruso Committed by Jeremy Mikola

Bump PHPUnit to 4.8.36 and use PSR-1 class

parent 3034a382
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
"ext-mongodb": "^1.3.0" "ext-mongodb": "^1.3.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.8" "phpunit/phpunit": "^4.8.36"
}, },
"autoload": { "autoload": {
"psr-4": { "MongoDB\\": "src/" }, "psr-4": { "MongoDB\\": "src/" },
......
...@@ -4,8 +4,9 @@ namespace MongoDB\Tests\Model; ...@@ -4,8 +4,9 @@ namespace MongoDB\Tests\Model;
use MongoDB\Model\CachingIterator; use MongoDB\Model\CachingIterator;
use Exception; use Exception;
use PHPUnit\Framework\TestCase;
class CachingIteratorTest extends \PHPUnit_Framework_TestCase class CachingIteratorTest extends TestCase
{ {
/** /**
* Sanity check for all following tests. * Sanity check for all following tests.
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace MongoDB\Tests; namespace MongoDB\Tests;
use PHPUnit\Framework\TestCase as BaseTestCase;
use RecursiveDirectoryIterator; use RecursiveDirectoryIterator;
use RecursiveIteratorIterator; use RecursiveIteratorIterator;
use ReflectionClass; use ReflectionClass;
...@@ -11,7 +12,7 @@ use RegexIterator; ...@@ -11,7 +12,7 @@ use RegexIterator;
/** /**
* Pedantic tests that have nothing to do with functional correctness. * Pedantic tests that have nothing to do with functional correctness.
*/ */
class PedantryTest extends \PHPUnit_Framework_TestCase class PedantryTest extends BaseTestCase
{ {
/** /**
* @dataProvider provideProjectClassNames * @dataProvider provideProjectClassNames
......
...@@ -5,10 +5,11 @@ namespace MongoDB\Tests; ...@@ -5,10 +5,11 @@ namespace MongoDB\Tests;
use MongoDB\Driver\ReadConcern; use MongoDB\Driver\ReadConcern;
use MongoDB\Driver\ReadPreference; use MongoDB\Driver\ReadPreference;
use MongoDB\Driver\WriteConcern; use MongoDB\Driver\WriteConcern;
use PHPUnit\Framework\TestCase as BaseTestCase;
use ReflectionClass; use ReflectionClass;
use stdClass; use stdClass;
abstract class TestCase extends \PHPUnit_Framework_TestCase abstract class TestCase extends BaseTestCase
{ {
public function provideInvalidDocumentValues() public function provideInvalidDocumentValues()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment