Files
pest/tests/Fixtures/Tia/app/tests/Feature/CoversCalculatorTest.php
T
nuno maduro d112582857 wip
2026-08-05 19:58:57 +01:00

16 lines
428 B
PHP

<?php
declare(strict_types=1);
use Fixture\App\Calculator;
// A second test file over the same source file, so a `Calculator` edit narrows
// to two of the three test files rather than to one.
test('adds within a feature test', function (): void {
expect((new Calculator)->add(10, 5))->toBe(15);
});
test('subtracts within a feature test', function (): void {
expect((new Calculator)->subtract(10, 5))->toBe(5);
});