mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
17 lines
389 B
PHP
17 lines
389 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\ExpectationFailedException;
|
|
|
|
test('pass', function () {
|
|
expect('1.1')->toBeString();
|
|
expect(1.1)->not->toBeString();
|
|
});
|
|
|
|
test('failures', function () {
|
|
expect(null)->toBeString();
|
|
})->throws(ExpectationFailedException::class);
|
|
|
|
test('not failures', function () {
|
|
expect('42')->not->toBeString();
|
|
})->throws(ExpectationFailedException::class);
|