mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 06:13:35 +02:00
14 lines
294 B
PHP
14 lines
294 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Fixture\App\Calculator;
|
|
|
|
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);
|
|
});
|