mirror of
https://github.com/pestphp/pest.git
synced 2026-04-22 23:17:28 +02:00
14 lines
205 B
PHP
14 lines
205 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Math;
|
|
|
|
test('math add', function () {
|
|
expect(Math::add(2, 3))->toBe(5);
|
|
});
|
|
|
|
test('math add negative', function () {
|
|
expect(Math::add(-1, 1))->toBe(0);
|
|
});
|