Skip to content

Commit

Permalink
Fix phpunit installation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Apr 5, 2024
1 parent 3c9857d commit aa0ed91
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('massive_art_build');
$rootNode = $treeBuilder->getRootNode();
Expand Down
3 changes: 3 additions & 0 deletions Tests/Build/BuildRegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
3 changes: 3 additions & 0 deletions Tests/Build/BuilderContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 3 additions & 0 deletions Tests/Command/BuildCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\\": "."},
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
<env name="SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT" value="1"/>
<env name="SYMFONY_PHPUNIT_REMOVE" value="symfony/yaml"/>
<env name="SYMFONY_PHPUNIT_REQUIRE" value="phpspec/prophecy:^1.14 phpspec/prophecy-phpunit:^2.0"/>
</php>
</phpunit>

0 comments on commit aa0ed91

Please sign in to comment.