Move all files to php/pest/
This commit is contained in:
parent
a62c22030e
commit
8784174d85
23 changed files with 0 additions and 0 deletions
14
php/pest/tests/AnagramTest.php
Normal file
14
php/pest/tests/AnagramTest.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use App\Anagram;
|
||||
|
||||
it('selects the correct anagrams for a word', function () {
|
||||
$matches = Anagram::forWord(
|
||||
'listen',
|
||||
['enlists', 'google', 'inlets', 'banana']
|
||||
);
|
||||
|
||||
assertSame(['inlets'], $matches->toArray());
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue