19 lines
413 B
PHP
19 lines
413 B
PHP
|
<?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);
|
||
|
});
|
||
|
});
|