Skip to content

Commit

Permalink
Replace references to old PHPUnit objects
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Nov 30, 2020
1 parent 15f3c22 commit dfaa257
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
7 changes: 2 additions & 5 deletions Tests/DependencyInjection/AbstractMongoDBExtensionTest.php
Expand Up @@ -21,8 +21,7 @@
use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;
use MongoDB\Client;
use PHPUnit\Framework\ExpectationFailedException;
use PHPUnit_Framework_AssertionFailedError;
use PHPUnit\Framework\AssertionFailedError;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand Down Expand Up @@ -478,9 +477,7 @@ private function assertDefinitionMethodCallAny(Definition $definition, $methodNa
$this->assertSame($params, $call[1], "Expected parameters to method '" . $methodName . "' did not match the actual parameters.");

return;
} catch (PHPUnit_Framework_AssertionFailedError $e) {
$lastError = $e;
} catch (ExpectationFailedException $e) {
} catch (AssertionFailedError $e) {
$lastError = $e;
}
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/Form/Type/DocumentTypeTest.php
Expand Up @@ -12,7 +12,7 @@
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\Persistence\ManagerRegistry;
use MongoDB\BSON\ObjectId;
use PHPUnit_Framework_MockObject_MockObject;
use PHPUnit\Framework\MockObject\MockObject;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\FormType;
use Symfony\Component\Form\FormView;
Expand All @@ -25,7 +25,7 @@ class DocumentTypeTest extends TypeTestCase
/** @var DocumentManager */
private $dm;

/** @var PHPUnit_Framework_MockObject_MockObject */
/** @var MockObject */
private $dmRegistry;

private $typeFQCN;
Expand Down
4 changes: 2 additions & 2 deletions Tests/Form/Type/TypeGuesserTest.php
Expand Up @@ -11,7 +11,7 @@
use Doctrine\Bundle\MongoDBBundle\Tests\TestCase;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\Persistence\ManagerRegistry;
use PHPUnit_Framework_MockObject_MockObject;
use PHPUnit\Framework\MockObject\MockObject;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Test\TypeTestCase;
use function array_merge;
Expand All @@ -22,7 +22,7 @@ class TypeGuesserTest extends TypeTestCase
/** @var DocumentManager */
private $dm;

/** @var PHPUnit_Framework_MockObject_MockObject */
/** @var MockObject */
private $dmRegistry;

private $typeFQCN;
Expand Down

0 comments on commit dfaa257

Please sign in to comment.