From 7d16056c901509640292b1ee54a71ad742dd5eac Mon Sep 17 00:00:00 2001
From: Andy Kernel <171799466+starswaitforus@users.noreply.github.com>
Date: Wed, 9 Oct 2024 16:39:21 +0200
Subject: [PATCH] wip
---
.github/workflows/test.yml | 3 ++-
composer.json | 2 +-
phpunit.xml | 4 ++++
test/og/Game/RoundTest.php | 1 +
4 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index b862e61..cd9921e 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -38,7 +38,8 @@ jobs:
timeout-minutes: 1
run: |
export XDEBUG_MODE=off
- composer check
+ composer unit
+ false
- name: "Check code coverage min percentage"
timeout-minutes: 4
diff --git a/composer.json b/composer.json
index 7027fdb..3d87c80 100644
--- a/composer.json
+++ b/composer.json
@@ -2,7 +2,7 @@
"scripts": {
"stan": "php vendor/bin/phpstan --memory-limit=300M analyze",
"unit": "php vendor/bin/phpunit -d memory_limit=70M",
- "infection": "php -d zend.assertions=1 -d memory_limit=180M vendor/bin/infection --show-mutations --only-covered --threads=6 --min-covered-msi=100",
+ "infection": "php -d memory_limit=180M vendor/bin/infection --show-mutations --only-covered --threads=6 --min-covered-msi=100",
"infection-cache": "@infection --coverage=www/coverage/",
"dev": "php cli/server.php 1 8080 --debug & php cli/udp-ws-bridge.php",
"dev2": "php cli/server.php 2 8080 --debug & php cli/udp-ws-bridge.php & php cli/udp-ws-bridge.php 8082",
diff --git a/phpunit.xml b/phpunit.xml
index 5245afc..6aed98f 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -26,4 +26,8 @@
server/src/Weapon/
+
+
+
+
diff --git a/test/og/Game/RoundTest.php b/test/og/Game/RoundTest.php
index a5d1034..d0e3751 100644
--- a/test/og/Game/RoundTest.php
+++ b/test/og/Game/RoundTest.php
@@ -34,6 +34,7 @@ public function testMsToTickConstantTenOnTest(): void
$this->assertSame(0, Util::millisecondsToFrames(0));
$this->assertSame(1, Util::millisecondsToFrames(1));
$this->assertSame(1, Util::millisecondsToFrames(10));
+ assert(false);
$this->assertSame(123, Util::millisecondsToFrames(1230));
$this->assertSame(240, Util::millisecondsToFrames(RifleAk::reloadTimeMs));
}