Skip to content

Commit 57eb74e

Browse files
authored
fix: disable PHPUnit result caching in playground (#1804)
1 parent 490502f commit 57eb74e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/runtime-playground/src/phpunit-command-handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function ${options.relativeFunctionName}(string $path, string $${options.rootPar
274274

275275
function phpunitArgsPhp(functionName: string, logFunction: string): string {
276276
return `function ${functionName}(array $argv) {
277-
$arguments = array('colors' => 'never', 'testdox' => true, 'verbose' => false, 'extensions' => array());
277+
$arguments = array('colors' => 'never', 'testdox' => true, 'verbose' => false, 'cacheResult' => false, 'extensions' => array());
278278
$args = array_slice($argv, 1);
279279
for ($i = 0; $i < count($args); $i++) {
280280
$arg = $args[$i];

tests/phpunit-project-autoload.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,5 +320,6 @@ const managedModeCode = phpunitRunCode({
320320
})
321321

322322
assert.ok(managedModeCode.includes("configured PHPUnit harness autoload file is not readable"))
323+
assert.ok(managedModeCode.includes("'cacheResult' => false"))
323324

324325
console.log("phpunit project autoload ok")

0 commit comments

Comments
 (0)