Skip to content

chore(sandbox): add PHPUnit vs Testo comparison samples - #349

Closed
roxblnfk wants to merge 2 commits into
1.xfrom
docs/sandbox-samples
Closed

roxblnfk wants to merge 2 commits into
1.xfrom
docs/sandbox-samples

Conversation

@roxblnfk

Copy link
Copy Markdown
Member

🔍 What was changed

  • Added tests/Sandbox/Sample/: eleven side-by-side PHPUnit vs Testo samples (assert chains, JSON, Expect, collections, memory leaks, #[DataSet], #[DataProvider], #[DataCross], lifecycle hooks, function tests, #[VCR]), one file per slide.
  • Excluded the folder from the sandbox suite in testo.php: PHPUnit is not installed in this repo, so a class extending TestCase would break discovery.
  • Fixed the #[VCR] docblock: with an empty match list php-vcr falls back to every available matcher, not only method and URL.

Why?

Slide material for a conference talk on Testo. The samples reference fictional App\... classes and are not meant to run.

Checklist

  • How was this tested:
    • php -l on every sample file, sandbox suite runs without picking up the folder

Slide material for a talk: one file per topic, PHPUnit block above the Testo block. The folder is excluded from the sandbox suite because PHPUnit is not installed here and a class extending TestCase would break discovery.

Assisted-By: Claude Fable 5.1 <noreply@anthropic.com>
php-vcr enables every available matcher when none are configured, not only method and URL.

Assisted-By: Claude Fable 5.1 <noreply@anthropic.com>
@roxblnfk
roxblnfk requested a review from a team as a code owner September 21, 2026 19:23
@codecov

codecov Bot commented Sep 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@roxblnfk roxblnfk closed this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant