Migrate mapper unit tests

This commit is contained in:
2024-10-19 14:44:47 -04:00
parent 20a2c50ae7
commit 932046f624
10 changed files with 151 additions and 230 deletions

View File

@@ -0,0 +1,17 @@
<?php
/**
* @author Daniel J. Summers <daniel@bitbadger.solutions>
* @license MIT
*/
declare(strict_types=1);
use BitBadger\PDODocument\Mapper\CountMapper;
pest()->group('unit');
describe('->map()', function () {
test('returns item 0 in the given array', function () {
expect((new CountMapper())->map([5, 8, 10]))->toBe(5);
});
});