7425b263d5
- Add 4 CakePHP Claude Code skills: cakephp-unit-test, cakephp-test-setup, cakephp-test-review, cakephp-mock-helper - Add 11 CakePHP PHPUnit component templates (Table, Entity, Controller, Service, Command, Component, Middleware, Mailer, Form, Behavior, Helper) - Add CakePHP configs (phpunit.xml.dist, app_local.test.php for SQLite in-memory) - Add comprehensive CakePHP documentation and component guides - Update test-runner.sh and installer to auto-detect Laravel and CakePHP - Add CakePHP CI/CD templates for GitHub Actions and GitLab CI - Update system prompt, verification checklist, and README with dedicated guides
29 lines
758 B
YAML
29 lines
758 B
YAML
services:
|
|
test-runner:
|
|
image: php:8.3-cli-alpine
|
|
container_name: php_unit_tester
|
|
working_dir: /var/www/html
|
|
volumes:
|
|
- ./:/var/www/html
|
|
environment:
|
|
- APP_ENV=testing
|
|
- DB_CONNECTION=sqlite
|
|
- DB_DATABASE=:memory:
|
|
- BCRYPT_ROUNDS=4
|
|
- CACHE_STORE=array
|
|
- QUEUE_CONNECTION=sync
|
|
- MAIL_MAILER=array
|
|
command: >
|
|
sh -c "
|
|
apk add --no-cache sqlite-libs libzip-dev icu-dev zip unzip git &&
|
|
docker-php-ext-configure intl &&
|
|
docker-php-ext-install pdo pdo_sqlite zip intl &&
|
|
if [ -f 'bin/cake' ]; then
|
|
bin/cake test app;
|
|
elif [ -f 'artisan' ]; then
|
|
php artisan test;
|
|
else
|
|
vendor/bin/phpunit;
|
|
fi
|
|
"
|