Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
starswaitforus committed Oct 9, 2024
1 parent 552f2f0 commit 1c053c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
run: |
sudo apt-get update && sudo apt-get install -y \
composer
ls -lah /etc/php/8.1/cli/php.ini
sudo sh -c 'echo "zend.assertions = 1" >> /etc/php/8.1/cli/php.ini'
- name: "Install Composer dependencies"
timeout-minutes: 1
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions test/og/Unit/UtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
class UtilTest extends BaseTest
{

public function testAssertionsEnabled(): void
{
$this->expectException('\AssertionError');
assert(false); // @phpstan-ignore function.impossibleType
}

public function testNegativeTime(): void
{
$this->expectExceptionMessage('Negative time given');
Expand Down

0 comments on commit 1c053c8

Please sign in to comment.