Migrate tests to Pest (#8)
Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
17
tests/Unit/Mapper/CountMapperTest.php
Normal file
17
tests/Unit/Mapper/CountMapperTest.php
Normal 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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user