mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
17 lines
384 B
PHP
17 lines
384 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\ExpectationFailedException;
|
|
|
|
test('pass', function () {
|
|
expect(asin(2))->toBeNan();
|
|
expect(log(0))->not->toBeNan();
|
|
});
|
|
|
|
test('failures', function () {
|
|
expect(1)->toBeNan();
|
|
})->throws(ExpectationFailedException::class);
|
|
|
|
test('not failures', function () {
|
|
expect(acos(1.5))->not->toBeNan();
|
|
})->throws(ExpectationFailedException::class);
|