2024-07-21 01:47:21 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @author Daniel J. Summers <daniel@bitbadger.solutions>
|
|
|
|
* @license MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2024-06-08 23:58:45 +00:00
|
|
|
|
|
|
|
namespace Test\Unit\Mapper;
|
|
|
|
|
|
|
|
use BitBadger\PDODocument\Mapper\CountMapper;
|
2024-06-21 13:46:41 +00:00
|
|
|
use PHPUnit\Framework\Attributes\TestDox;
|
2024-06-08 23:58:45 +00:00
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Unit tests for the CountMapper class
|
|
|
|
*/
|
2024-06-21 13:46:41 +00:00
|
|
|
#[TestDox('Count Mapper (Unit tests)')]
|
2024-06-08 23:58:45 +00:00
|
|
|
class CountMapperTest extends TestCase
|
|
|
|
{
|
|
|
|
public function testMapSucceeds(): void
|
|
|
|
{
|
|
|
|
$this->assertEquals(5, (new CountMapper())->map([5, 8, 10]), 'Count not correct');
|
|
|
|
}
|
|
|
|
}
|