pdo-document/tests/Unit/Mapper/ArrayMapperTest.php

19 lines
413 B
PHP
Raw Permalink Normal View History

<?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);
});
});