diff --git a/.github/workflows/phpunits.yaml b/.github/workflows/phpunits.yaml index 339a81e..3f432fc 100644 --- a/.github/workflows/phpunits.yaml +++ b/.github/workflows/phpunits.yaml @@ -19,7 +19,7 @@ jobs: strategy: matrix: wallet-versions: [ "10.0", 9.6, 9.5, 9.4, 9.3, 9.2, 8.4, 7.3 ] - php-versions: [ 8.2 ] + php-versions: [ 8.3 ] databases: [ pgsql, mysql ] caches: [ redis, memcached ] @@ -82,7 +82,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} - extensions: mbstring, pgsql, mysql, sqlite, redis, memcached + extensions: bcmath, mbstring, pgsql, mysql, sqlite, redis, memcached coverage: pcov env: runner: self-hosted diff --git a/tests/Infra/TestCase.php b/tests/Infra/TestCase.php index e8ff973..2ae988b 100644 --- a/tests/Infra/TestCase.php +++ b/tests/Infra/TestCase.php @@ -84,8 +84,18 @@ protected function getEnvironmentSetUp($app): void private static function iterate(int $value): iterable { + $startAt = microtime(true); + for ($i = 0; $i < $value; ++$i) { + $tickTime = microtime(true); + yield []; + + $current = microtime(true); + + if ((($current - $tickTime) > 5) || (($current - $startAt) > 60)) { + break; + } } } }