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

19 lines
411 B
PHP
Raw Normal View History

2024-11-17 21:30:53 +00:00
<?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);
});
});