Skip to content

Commit

Permalink
Remove PHPUnit 9 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
pamil committed Oct 13, 2020
1 parent 9c61f07 commit d2679cb
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 @@ -59,6 +59,7 @@
"matthiasnoback/symfony-dependency-injection-test": "^4.0",
"pamil/phpspec-skip-example-extension": "^4.1",
"phpspec/phpspec": "^6.1",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "0.12.49",
"phpstan/phpstan-phpunit": "0.12.16",
"phpstan/phpstan-webmozart-assert": "0.12.7",
Expand Down
3 changes: 3 additions & 0 deletions src/Bundle/Tests/Command/DebugResourceCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
namespace Sylius\Bundle\ResourceBundle\Tests\Command;

use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
use Prophecy\Prophecy\ObjectProphecy;
use Sylius\Bundle\ResourceBundle\Command\DebugResourceCommand;
use Sylius\Component\Resource\Metadata\Metadata;
Expand All @@ -23,6 +24,8 @@

final class DebugResourceCommandTest extends TestCase
{
use ProphecyTrait;

/** @var ObjectProphecy|RegistryInterface */
private $registry;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
namespace Sylius\Bundle\ResourceBundle\Tests\Form\Type;

use Doctrine\Common\Collections\ArrayCollection;
use Prophecy\PhpUnit\ProphecyTrait;
use Prophecy\Prophecy\ObjectProphecy;
use Sylius\Bundle\ResourceBundle\Form\Type\ResourceAutocompleteChoiceType;
use Sylius\Component\Registry\ServiceRegistryInterface;
Expand All @@ -26,6 +27,8 @@

final class ResourceAutocompleteChoiceTypeTest extends TypeTestCase
{
use ProphecyTrait;

/** @var ObjectProphecy|ServiceRegistryInterface */
private $resourceRepositoryRegistry;

Expand Down
3 changes: 3 additions & 0 deletions src/Bundle/Tests/Form/Type/ResourceTranslationsTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Sylius\Bundle\ResourceBundle\Tests\Form\Type;

use Prophecy\PhpUnit\ProphecyTrait;
use Prophecy\Prophecy\ObjectProphecy;
use Sylius\Bundle\ResourceBundle\Form\Type\ResourceTranslationsType;
use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface;
Expand All @@ -22,6 +23,8 @@

final class ResourceTranslationsTypeTest extends TypeTestCase
{
use ProphecyTrait;

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit d2679cb

Please sign in to comment.