Skip to content

Commit

Permalink
Merge pull request #40 from bavix/php83
Browse files Browse the repository at this point in the history
upgrade php
  • Loading branch information
rez1dent3 authored Oct 27, 2023
2 parents 51dec3a + 66da2b8 commit 8b4069e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/phpunits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]

Expand Down Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions tests/Infra/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
}

0 comments on commit 8b4069e

Please sign in to comment.