pdo-document/tests/unit/FieldMatchTest.php
Daniel J. Summers 330e272187 alpha2 (#2)
- Change multiple field matching to enum
- Implement auto-generated IDs

Reviewed-on: #2
2024-06-11 11:07:56 +00:00

23 lines
540 B
PHP

<?php declare(strict_types=1);
namespace Test\Unit;
use BitBadger\PDODocument\FieldMatch;
use PHPUnit\Framework\TestCase;
/**
* Unit tests for the FieldMatch enum
*/
class FieldMatchTest extends TestCase
{
public function testToStringSucceedsForAll(): void
{
$this->assertEquals('AND', FieldMatch::All->toString(), 'All should have returned AND');
}
public function testToStringSucceedsForAny(): void
{
$this->assertEquals('OR', FieldMatch::Any->toString(), 'Any should have returned OR');
}
}