mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
22 lines
461 B
PHP
22 lines
461 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
it('can pass with comparison', function () {
|
|
expect(true)->toEqual(true);
|
|
});
|
|
|
|
test('can also pass', function () {
|
|
expect("string")->toBeString();
|
|
});
|
|
|
|
test('can pass with dataset', function ($value) {
|
|
expect($value)->toEqual(true);
|
|
})->with([true]);
|
|
|
|
describe('block', function () {
|
|
test('can pass with dataset in describe block', function ($number) {
|
|
expect($number)->toBeInt();
|
|
})->with([1]);
|
|
});
|