Unit test

https://www.startutorial.com/articles/view/phpunit-beginner-part-1-get-started

Nhưng lưu ý thay PHPUnit_Framework_TestCase bằng PHPUnit\Framework\TestCase.

 

Nếu cài phpunit cho riêng project composer require --dev phpunit/phpunit ^6.0

thêm vào file test trước khi dùng:

require __DIR__ . '/vendor/autoload.php';

Leave a Reply

You must be logged in to post a comment.