Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eliot-akira/wp-now-phpunit-example
https://github.com/eliot-akira/wp-now-phpunit-example
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/eliot-akira/wp-now-phpunit-example
- Owner: eliot-akira
- Created: 2024-04-13T18:31:18.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-18T18:22:25.000Z (7 months ago)
- Last Synced: 2024-04-19T18:58:07.779Z (7 months ago)
- Language: PHP
- Size: 1.59 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# wp-now-phpunit-example
Example of running PHPUnit with `wp-now`. See issue at [WordPress/wordpress-playground#1241](https://github.com/WordPress/wordpress-playground/issues/1241).
## Start
```sh
git clone https://github.com/eliot-akira/wp-now-phpunit-example
cd wp-now-phpunit-example
npm install
npm run start
```It ends with a WASM error, "null function or function signature mismatch".
Compare with running from Composer-installed vendor folder:
```sh
npm run start:vendor
```It ends with "Program terminated with exit(1)", which is the expected behavior because PHPUnit requires a test file.