Walkthrough: Scaffolding plugin tests and trying execute unit test.
docker-compose up -d
docker-compose exec wordpress wp core install --allow-root --url=http://www.example.com/ --title=testing --admin_user=wpadmin [email protected]
docker-compose exec wordpress wp scaffold plugin-tests my-plugin --allow-root
echo "<?php" > my-plugin.php
docker-compose exec wordpress bash -c "/var/www/html/wp-content/plugins/my-plugin/bin/install-wp-tests.sh wordpress_test root 'devpass' db latest"
docker-compose exec wordpress bash -c "cd /var/www/html/wp-content/plugins/my-plugin; phpunit"