Files
pest/tests/Expect/toEqualIgnoringCase.php
2020-07-13 17:27:55 +01:00

16 lines
407 B
PHP

<?php
use PHPUnit\Framework\ExpectationFailedException;
test('pass', function () {
expect('hello')->toEqualIgnoringCase('HELLO');
});
test('failures', function () {
expect('hello')->toEqualIgnoringCase('BAR');
})->throws(ExpectationFailedException::class);
test('not failures', function () {
expect('HELLO')->not->toEqualIgnoringCase('HelLo');
})->throws(ExpectationFailedException::class);