mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
17 lines
379 B
PHP
17 lines
379 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\ExpectationFailedException;
|
|
|
|
test('pass', function () {
|
|
expect(true)->toBeBool();
|
|
expect(0)->not->toBeBool();
|
|
});
|
|
|
|
test('failures', function () {
|
|
expect(null)->toBeBool();
|
|
})->throws(ExpectationFailedException::class);
|
|
|
|
test('not failures', function () {
|
|
expect(false)->not->toBeBool();
|
|
})->throws(ExpectationFailedException::class);
|