mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 06:13:35 +02:00
16 lines
428 B
PHP
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);
|
|
});
|