To run static analysis on the plugin, install PHPStan for Craft CMS and run the following command from the root of your project.
php vendor/bin/phpstan analyse -c vendor/putyourlightson/craft-cloudflare/phpstan.neon --memory-limit 1GTo run the Easy Coding Standard on the plugin, install ECS for Craft CMS and run the following command from the root of your project.
php vendor/bin/ecs check -c vendor/putyourlightson/craft-cloudflare/ecs.phpTo run Pest tests, first install Craft Pest core as a dev dependency.
composer require markhuot/craft-pest-core:^2.0.0-rc2 --devThen run the following command from the root of your project.
php vendor/bin/pest vendor/putyourlightson/craft-cloudflare/tests/pest --test-directory=vendor/putyourlightson/craft-cloudflare/tests/pest --colors --display-deprecationsOr to run a specific test.
php vendor/bin/pest vendor/putyourlightson/craft-cloudflare/tests/pest --test-directory=vendor/putyourlightson/craft-cloudflare/tests/pest --colors --display-deprecations --filter=MySpecificTest