File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77use PHPUnit \Framework \TestCase ;
88
99/**
10- * Validates that escaping a percent sign as `%%` works around the Codeception 5
11- * upstream ArgumentCountError in `Codeception\Reporter\ReportPrinter` using the
12- * `--report` cli flag.
10+ * Exposes the upstream Codeception 5 ArgumentCountError in `Codeception\Reporter\ReportPrinter`
11+ * using the `--report` cli flag when a test name contains a `%`.
12+ *
13+ * @see https://github.com/Codeception/Codeception/pull/6927
1314 */
1415class ReportPrinterSprintfBugTest extends TestCase
1516{
@@ -27,8 +28,8 @@ public function testEscapedPercentInName(int $value): void
2728 public static function provideEscapedPercentInNameCases (): iterable
2829 {
2930 return [
30- // The %% is rendered as % by the Codeception ReportPrinter sprintf
31- '100%% safely escaped ' => [1 ],
31+ // This test is expected to fail with `ArgumentCountError` due to a bug in Codeception ReportPrinter
32+ '100% coverage ' => [1 ],
3233 ];
3334 }
3435}
You can’t perform that action at this time.
0 commit comments