Skip to content

Commit dd46bf9

Browse files
Copilotvoku
andauthored
Document stricter infection test setup
Agent-Logs-Url: https://github.com/voku/Stringy/sessions/66d485bc-1215-40ee-be1b-89dc3284da01 Co-authored-by: voku <264695+voku@users.noreply.github.com>
1 parent 173108a commit dd46bf9

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
composer: basic
5757
phpunit: '^9.6'
5858
phpunit_config: phpunit.xml.dist
59+
# Infection mutates and re-runs the suite, so that leg needs a longer timeout.
5960
timeout-minutes: ${{ matrix.run_infection && 30 || 10 }}
6061
steps:
6162
- name: Checkout code

tests/StaticStringyTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function testArgumentNumbers()
5959
$staticStringyClass = new ReflectionClass(S::class);
6060
$methodArgsProperty = $staticStringyClass->getProperty('methodArgs');
6161
$methodArgsProperty->setAccessible(true);
62+
// Reset the cache so this test always exercises __callStatic()'s argument counting.
6263
$methodArgsProperty->setValue(null, null);
6364

6465
S::slice('fòôbàř', 0, 3, 'UTF-8');

0 commit comments

Comments
 (0)