Skip to content

Commit

Permalink
fix "PHPUnit\Framework\TestCase::prophesize() is deprecated"
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaicher committed Nov 28, 2021
1 parent 2825b6b commit 741607f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"require-dev": {
"doctrine/doctrine-bundle": "^1.12|^2.0",
"phpspec/prophecy-phpunit": "2.0.x-dev",
"phpunit/phpunit": "^9.5",
"symfony/form": "^4.4|^5.3|^6.0",
"symfony/property-access": "^4.4|^5.3|^6.0",
Expand Down
3 changes: 3 additions & 0 deletions tests/Doctrine/DBAL/Types/PhoneNumberTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
use libphonenumber\PhoneNumberUtil;
use Misd\PhoneNumberBundle\Doctrine\DBAL\Types\PhoneNumberType;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;

/**
* Phone number type test.
*/
class PhoneNumberTypeTest extends TestCase
{
use ProphecyTrait;

/**
* @var AbstractPlatform
*/
Expand Down
3 changes: 3 additions & 0 deletions tests/Serializer/Normalizer/PhoneNumberNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Misd\PhoneNumberBundle\Serializer\Normalizer\PhoneNumberNormalizer;
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Prophecy\PhpUnit\ProphecyTrait;
use Symfony\Component\Serializer\Exception\UnexpectedValueException;
use Symfony\Component\Serializer\Serializer;

Expand All @@ -26,6 +27,8 @@
*/
class PhoneNumberNormalizerTest extends TestCase
{
use ProphecyTrait;

protected function setUp(): void
{
if (!class_exists(Serializer::class)) {
Expand Down
3 changes: 3 additions & 0 deletions tests/Templating/Helper/PhoneNumberHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@
use Misd\PhoneNumberBundle\Exception\InvalidArgumentException;
use Misd\PhoneNumberBundle\Templating\Helper\PhoneNumberHelper;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;

/**
* Phone number templating helper test.
*/
class PhoneNumberHelperTest extends TestCase
{
use ProphecyTrait;

protected $phoneNumberUtil;
protected $helper;

Expand Down

0 comments on commit 741607f

Please sign in to comment.