diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index dc377ac..ac18884 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -21,7 +21,7 @@ */ class Configuration implements ConfigurationInterface { - public function getConfigTreeBuilder() + public function getConfigTreeBuilder(): TreeBuilder { $treeBuilder = new TreeBuilder('massive_art_build'); $rootNode = $treeBuilder->getRootNode(); diff --git a/Tests/Build/BuildRegistryTest.php b/Tests/Build/BuildRegistryTest.php index b30769e..e91719b 100644 --- a/Tests/Build/BuildRegistryTest.php +++ b/Tests/Build/BuildRegistryTest.php @@ -14,9 +14,12 @@ use Massive\Bundle\BuildBundle\Build\BuilderInterface; use Massive\Bundle\BuildBundle\Build\BuildRegistry; use Massive\Bundle\BuildBundle\Tests\BaseTestCase; +use Prophecy\PhpUnit\ProphecyTrait; class BuildRegistryTest extends BaseTestCase { + use ProphecyTrait; + /** * @var BuildRegistry */ diff --git a/Tests/Build/BuilderContextTest.php b/Tests/Build/BuilderContextTest.php index 7301a6c..c36eea2 100644 --- a/Tests/Build/BuilderContextTest.php +++ b/Tests/Build/BuilderContextTest.php @@ -13,9 +13,12 @@ use Massive\Bundle\BuildBundle\Build\BuilderContext; use Massive\Bundle\BuildBundle\Tests\BaseTestCase; +use Prophecy\PhpUnit\ProphecyTrait; class BuilderContextTest extends BaseTestCase { + use ProphecyTrait; + protected $input; protected $output; diff --git a/Tests/Command/BuildCommandTest.php b/Tests/Command/BuildCommandTest.php index 0653bfc..df49350 100644 --- a/Tests/Command/BuildCommandTest.php +++ b/Tests/Command/BuildCommandTest.php @@ -16,10 +16,13 @@ use Massive\Bundle\BuildBundle\ContainerAwareInterface; use Massive\Bundle\BuildBundle\Tests\BaseTestCase; use Prophecy\Argument; +use Prophecy\PhpUnit\ProphecyTrait; use Symfony\Component\Console\Tester\CommandTester; class BuildCommandTest extends BaseTestCase { + use ProphecyTrait; + public function setUp() { parent::setUp(); diff --git a/composer.json b/composer.json index c10ff63..0ba301c 100644 --- a/composer.json +++ b/composer.json @@ -17,9 +17,8 @@ "symfony/framework-bundle": "^4.3 || ^5.0 || ^6.0 || ^7.0" }, "require-dev": { - "symfony/phpunit-bridge": "^5.0.4 || ^6.0 || ^7.0", - "matthiasnoback/symfony-dependency-injection-test": "^4.0 || ^5.0", - "phpspec/prophecy": "^1.14" + "symfony/phpunit-bridge": "^5.4.33|^6.3.10|^7.0.1", + "matthiasnoback/symfony-dependency-injection-test": "^4.0 || ^5.0" }, "autoload": { "psr-4": {"Massive\\Bundle\\BuildBundle\\": "."}, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8c3b0f3..be7c19f 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -19,5 +19,6 @@ +