Daniel J. Summers
486028bd40
- Changes `items` and `hasItems` on `DocumentList` to be properties - Updates dependent option/result library, which contains similar changes Reviewed-on: #7
27 lines
574 B
PHP
27 lines
574 B
PHP
<?php
|
|
/**
|
|
* @author Daniel J. Summers <daniel@bitbadger.solutions>
|
|
* @license MIT
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Test\Unit\Mapper;
|
|
|
|
use BitBadger\PDODocument\Mapper\CountMapper;
|
|
use PHPUnit\Framework\Attributes\TestDox;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
/**
|
|
* Unit tests for the CountMapper class
|
|
*/
|
|
#[TestDox('Count Mapper (Unit tests)')]
|
|
class CountMapperTest extends TestCase
|
|
{
|
|
#[TestDox('map() succeeds')]
|
|
public function testMapSucceeds(): void
|
|
{
|
|
$this->assertEquals(5, new CountMapper()->map([5, 8, 10]), 'Count not correct');
|
|
}
|
|
}
|