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,18 @@
<?php
/**
* @author Daniel J. Summers <daniel@bitbadger.solutions>
* @license MIT
*/
declare(strict_types=1);
use BitBadger\PDODocument\Mapper\ArrayMapper;
pest()->group('unit');
describe('->map()', function () {
test('returns the given array', function () {
$result = ['one' => 2, 'three' => 4, 'eight' => 'five'];
expect((new ArrayMapper())->map($result))->toBe($result);
});
});