Overview of Pest PHP Testing Framework
Pest is an elegant testing framework for PHP designed to make tests simple to read and understand using a syntax that resembles natural human language. Its API is inspired by Ruby's RSpec and Jest, providing a seamless coding experience and highly organized, informative console reporting for debugging with clear error and stack trace displays.
function sum($a, $b) {
return $a + $b;
}
test('sum', function () {
$result = sum(1, 2);
expect($result)->toBe(3);
});