19 lines
367 B
PHP
19 lines
367 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Unit;
|
|
|
|
describe('Math Helper', function (): void {
|
|
it('calculates the sum of two numbers correctly', function (): void {
|
|
// GIVEN
|
|
$firstNumber = 2;
|
|
$secondNumber = 3;
|
|
|
|
// WHEN
|
|
$sum = $firstNumber + $secondNumber;
|
|
|
|
// THEN
|
|
expect($sum)->toBe(5);
|
|
});
|
|
});
|