Categories
PHPUnit

What do you verify before deploying your code ?

vendor/bin/phpcs --standard=PSR2 --colors -p src/ && vendor/bin/phpunit --stop-on-failure  

PSR-2 Code Styling

This command returns all PSR-2 (code styling errors)

vendor/bin/phpcs --standard=PSR2 ~/directory_to_scan

vendor/bin/phpcs –standard=PSR2 –colors -pv src/ApiBundle

with more information

This command fix all fixable PSR-2 (code styling errors) issues

vendor/bin/phpcbf --standard=PSR2 --report=json ~/directory_to_scan

Run the Functional and Unit Tests

vendor/bin/phpunit –stop-on-failure

Leave a Reply