PHP·98 questions

How to test PHP code?

Answer
PHPUnit — the standard.
composer require --dev phpunit/phpunit.
TestCase classes.
Assertions: assertEquals, assertTrue.
./vendor/bin/phpunit.
Was this answer helpful?

More questions in this topic

Related questions from other topics