mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 14:23:34 +02:00
14 lines
271 B
PHP
14 lines
271 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Fixture\App\Calculator;
|
|
|
|
test('adds two numbers', function (): void {
|
|
expect((new Calculator)->add(1, 2))->toBe(3);
|
|
});
|
|
|
|
test('subtracts two numbers', function (): void {
|
|
expect((new Calculator)->subtract(3, 1))->toBe(2);
|
|
});
|