PHPUnit is the official testing framework chosen by the WordPress Core team to perform automated unit testing for PHP code. You can learn how to get started and run tests with it from the below resources –