php-katas-with-pest/tests/PangramTest.php
2020-07-12 16:56:40 +01:00

19 lines
372 B
PHP

<?php
use function App\isPangram;
it('determines if a string is a pangram', function (
string $input,
bool $expected
) {
assertSame($expected, isPangram($input));
})->with([
[
'input' => 'hello word',
'expected' => false,
],
[
'input' => 'The quick brown fox jumps over the lazy dog',
'expected' => true,
]
]);