/**
* @internal
*/
class ComparisonExtensionTest extends TestCase
{ /**
* @dataProvider comparisonProvider
*/
public function testCompare(bool
$shouldBeTrue, string
$operator, mixed
$value, mixed
$comparable = null
): void
{ $extension =
new ComparisonExtension();
$comparison =
$extension->
compare($operator,
$value,
$comparable);
if ($shouldBeTrue) { static::
assertTrue($comparison);
} else { static::
assertFalse($comparison);
} } public static function comparisonProvider(): \Generator
{