mirror of
https://github.com/pestphp/pest.git
synced 2026-07-24 10:30:03 +02:00
fix: package lock fingerprint
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Pest\Exceptions\InvalidExpectationValue;
|
||||
use PHPUnit\Framework\ExpectationFailedException;
|
||||
|
||||
@@ -19,18 +21,18 @@ $array = [
|
||||
],
|
||||
];
|
||||
|
||||
test('pass', function () use ($array) {
|
||||
test('pass', function () use ($array): void {
|
||||
expect($array)->toHaveKebabCaseKeys();
|
||||
});
|
||||
|
||||
test('failures', function () {
|
||||
test('failures', function (): void {
|
||||
expect('not-an-array')->toHaveKebabCaseKeys();
|
||||
})->throws(InvalidExpectationValue::class);
|
||||
|
||||
test('failures with message', function () use ($array) {
|
||||
test('failures with message', function () use ($array): void {
|
||||
expect($array)->not->toHaveKebabCaseKeys('oh no!');
|
||||
})->throws(ExpectationFailedException::class, 'oh no!');
|
||||
|
||||
test('not failures', function () use ($array) {
|
||||
test('not failures', function () use ($array): void {
|
||||
expect($array)->not->toHaveKebabCaseKeys();
|
||||
})->throws(ExpectationFailedException::class);
|
||||
|
||||
Reference in New Issue
Block a user