Update dev dependency

This commit is contained in:
Andy Kernel 2024-08-21 11:18:10 +02:00 committed by solcloud
parent a8f7098445
commit 7bc6cef34f
5 changed files with 312 additions and 407 deletions

View File

@ -32,8 +32,8 @@
}
},
"require-dev": {
"phpstan/phpstan-phpunit": "^1.1",
"phpunit/phpunit": "^9.5"
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^11.3"
},
"autoload-dev": {
"psr-4": {

702
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,7 @@
<directory>./test/simulation/</directory>
</testsuite>
</testsuites>
<coverage>
<source>
<include>
<directory>server/src/</directory>
</include>
@ -25,5 +25,5 @@
<directory>server/src/Map/</directory>
<directory>server/src/Weapon/</directory>
</exclude>
</coverage>
</source>
</phpunit>

View File

@ -28,6 +28,10 @@ class PerformanceTest extends BaseTest
public static function setUpBeforeClass(): void
{
if (getenv('XDEBUG_MODE') === 'coverage') {
self::markTestSkipped();
}
gc_collect_cycles();
parent::setUpBeforeClass();

View File

@ -10,6 +10,11 @@ use Test\BaseTest;
abstract class SimulationTester extends BaseTest
{
public function __construct()
{
parent::__construct(get_class($this));
}
public function onGameStart(Game $game): void
{
// empty hook