diff --git a/composer.json b/composer.json index 66fb34a..46f6116 100644 --- a/composer.json +++ b/composer.json @@ -16,6 +16,7 @@ "require-dev": { "doctrine/collections": "^1.6.8", "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "conflict": { diff --git a/tests/DeepCopyTest/TypeFilter/Spl/ArrayObjectFilterTest.php b/tests/DeepCopyTest/TypeFilter/Spl/ArrayObjectFilterTest.php index 12cf81d..adb1cca 100644 --- a/tests/DeepCopyTest/TypeFilter/Spl/ArrayObjectFilterTest.php +++ b/tests/DeepCopyTest/TypeFilter/Spl/ArrayObjectFilterTest.php @@ -6,7 +6,7 @@ use DeepCopy\DeepCopy; use DeepCopy\TypeFilter\Spl\ArrayObjectFilter; use PHPUnit\Framework\TestCase; -use Prophecy\Prophecy\ObjectProphecy; +use Prophecy\PhpUnit\ProphecyTrait; use RecursiveArrayIterator; /** @@ -16,13 +16,14 @@ */ final class ArrayObjectFilterTest extends TestCase { + use ProphecyTrait; /** * @var ArrayObjectFilter */ private $arrayObjectFilter; /** - * @var DeepCopy|ObjectProphecy + * @var DeepCopy|ProphecyTrait */ private $copierProphecy;