mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
17 lines
486 B
PHP
17 lines
486 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\ExpectationFailedException;
|
|
|
|
test('is case sensitive', function () {
|
|
expect('hello world')->toContainString('world');
|
|
expect('hello world')->not->toContainString('World');
|
|
});
|
|
|
|
test('failures', function () {
|
|
expect('hello world')->toContainString('Hello');
|
|
})->throws(ExpectationFailedException::class);
|
|
|
|
test('not failures', function () {
|
|
expect('hello world')->not->toContainString('hello');
|
|
})->throws(ExpectationFailedException::class);
|