Files
pest/tests/.tests/SuccessOnly.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]);
});