php-katas-with-pest/tests/PangramTest.php

19 lines
372 B
PHP
Raw Normal View History

2020-07-12 15:54:11 +00:00
<?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,
]
]);