Add test suite, testing macros, and testing docs - #1
Merged
Conversation
- Pest suite: Testbench TestCase + core provider, PluginTest (manifest/ native-code/composer validation), and a facade↔bridge contract test driven through the FakeBridge. - src/Testing/*Macros.php: plugin-specific FakeBridge with*/assert* vocabulary, auto-registered under test runs on a macroable core. - *MacrosTest covering the macros (pass + failure cases). - README "## Testing" section showing app-test usage. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- GitHub Actions: Pest job (resolves the v4 core as dev-main from the public mobile-air repo) + a standalone Pint job. - phpunit.xml so PHPUnit has a config + cache directory on CI. - Apply pint fixes to the generated tests and the provider edit. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an automated test suite, plugin-specific FakeBridge testing macros, and README testing docs.
TestCase(boots the NativePHP core provider + this plugin), aPluginTestvalidating the manifest / native-code classes / composer config, and a facade↔bridge contract test driven through the coreFakeBridge.src/Testing/*Macros.php— plugin-specificwith*/assert*vocabulary on theFakeBridge, auto-registered under test runs on a macroable core (guarded so older cores stay fatal-free).*MacrosTest— covers each macro (pass + failure cases).## Testing— shows how app developers fake/assert this plugin in their own tests.Verified green against
nativephp/mobiledev-main.🤖 Generated with Claude Code