Skip to content

Commit 0a8e50e

Browse files
committed
docs: fix README — Printer has no separate testFailed method
1 parent 6b3b7d1 commit 0a8e50e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

packages/phpunit/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,7 @@ const writer = new ConsoleWriter();
311311
printer.start(command); // → "php vendor/bin/phpunit ..."
312312
printer.testVersion(result); // → "🚀 PHPUnit 11.5.0"
313313
printer.testSuiteStarted(result); // → "PASS App\Tests\ExampleTest"
314-
printer.testFinished(result); // → " ✓ test_add 3 ms"
315-
printer.testFailed(result); // → " ⨯ test_sub 5 ms"
314+
printer.testFinished(result); // → " ✓ test_add 3 ms" (or " ⨯ test_sub 5 ms" for failures)
316315
printer.testResultSummary(result); // → "Tests: 1 failed, 3 passed (12 assertions)"
317316
printer.timeAndMemory(result); // → "Duration: 0.05s"
318317
printer.close(); // flush deferred error details

packages/phpunit/README.zh-TW.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,7 @@ const writer = new ConsoleWriter();
310310
printer.start(command); // → "php vendor/bin/phpunit ..."
311311
printer.testVersion(result); // → "🚀 PHPUnit 11.5.0"
312312
printer.testSuiteStarted(result); // → "PASS App\Tests\ExampleTest"
313-
printer.testFinished(result); // → " ✓ test_add 3 ms"
314-
printer.testFailed(result); // → " ⨯ test_sub 5 ms"
313+
printer.testFinished(result); // → " ✓ test_add 3 ms"(失敗時為 " ⨯ test_sub 5 ms")
315314
printer.testResultSummary(result); // → "Tests: 1 failed, 3 passed (12 assertions)"
316315
printer.timeAndMemory(result); // → "Duration: 0.05s"
317316
printer.close(); // 清空延遲的錯誤詳情

0 commit comments

Comments
 (0)