Skip to content

Commit

Permalink
Fix PHPunit version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom32i committed Feb 11, 2024
1 parent e85167c commit dd0b676
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 39 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"prefer-stable": true,
"require": {
"php": ">=8.2",
"php": ">=7.4",
"ext-dom": "*",
"erusev/parsedown": "^1.7.4",
"symfony/asset": "^6.0|^7.0",
Expand Down Expand Up @@ -62,6 +62,7 @@
"ekino/phpstan-banned-code": "^1.0",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^1.6",
"phpunit/phpunit": "^9.6",
"psr/log": "^1|^2",
"symfony/browser-kit": "^6.0|^7.0",
"symfony/expression-language": "^6.0|^7.0",
Expand Down
72 changes: 36 additions & 36 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="tests/bootstrap.php"
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="tests/bootstrap.php"
>
<php>
<server name="KERNEL_CLASS" value="App\Kernel" />
<server name="SHELL_VERBOSITY" value="-1" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=0&amp;max[self]=0&amp;max[total]=9999&amp;verbose=1" />
<env name="SYMFONY_PHPUNIT_VERSION" value="9.6"/>
<env name="SYMFONY_PHPUNIT_REMOVE" value="" />
</php>

<testsuites>
<testsuite name="Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./src/</directory>
<exclude>
<directory>./tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>

<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>
<coverage>
<include>
<directory>./src/</directory>
</include>
<exclude>
<directory>./tests</directory>
<directory>./vendor</directory>
</exclude>
</coverage>
<php>
<server name="KERNEL_CLASS" value="App\Kernel"/>
<server name="SHELL_VERBOSITY" value="-1"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=0&amp;max[self]=0&amp;max[total]=9999&amp;verbose=1"/>
<env name="SYMFONY_PHPUNIT_VERSION" value="9.6"/>
<env name="SYMFONY_PHPUNIT_REMOVE" value=""/>
</php>
<testsuites>
<testsuite name="Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
</listeners>
</phpunit>
2 changes: 1 addition & 1 deletion tests/Integration/BuildTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Stenope\Bundle\Tests\Integration;

use Psr\Log\Test\TestLogger;
use Stenope\Bundle\Tests\Unit\Log\TestLogger;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Console\Command\Command;
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/app/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ stenope:
services:
Psr\Log\LoggerInterface: '@logger'
logger:
class: Psr\Log\Test\TestLogger
class: Stenope\Bundle\Tests\Unit\Log\TestLogger
tags:
- name: kernel.reset
method: reset

0 comments on commit dd0b676

Please sign in to comment.