diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d85e914..3bb6657 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,10 @@ jobs: restore-keys: ${{ matrix.os }}-composer-${{ matrix.php-versions }}- - name: Install dependencies - run: composer install --prefer-dist + run: | + composer install --prefer-dist + wget https://github.com/infection/infection/releases/download/0.27.0/infection.phar -O /usr/local/bin/infection + chmod +x /usr/local/bin/infection - name: Run tests env: @@ -47,6 +50,7 @@ jobs: vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml vendor/bin/php-cs-fixer --diff --dry-run -v fix vendor/bin/psalm.phar --shepherd + infection --show-mutations --threads=$(nproc) - name: Upload coverage to Codecov env: diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1066ec7..1d02598 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,5 +1,5 @@ - + lib diff --git a/test/GenericTest.php b/test/GenericTest.php index b22bd6d..931d6bf 100644 --- a/test/GenericTest.php +++ b/test/GenericTest.php @@ -290,8 +290,8 @@ class GenericTest extends Fixtures $this->assertTrue($loop->isPaused()); $pauseTime = GenericLoop::STOP; - $this->assertTrue($loop->resume(false)); - $this->assertTrue($loop->resume(false)); + $this->assertTrue($loop->resume()); + EventLoop::queue(fn () => $this->assertTrue($loop->resume())); $expectedRunCount++; self::waitTick(); $this->assertEquals($expectedRunCount, $runCount);