Skip to content

Commit 7cf7019

Browse files
committed
tests: test() with description
1 parent dee3d24 commit 7cf7019

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/Security/Identity.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use Tester\Assert;
1313
require __DIR__ . '/../bootstrap.php';
1414

1515

16-
test(function () {
16+
test('', function () {
1717
$id = new Identity(12, 'admin', ['name' => 'John']);
1818

1919
Assert::same(12, $id->getId());
@@ -26,7 +26,7 @@ test(function () {
2626
});
2727

2828

29-
test(function () {
29+
test('', function () {
3030
$id = new Identity('12');
3131
Assert::same(12, $id->getId());
3232

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
date_default_timezone_set('Europe/Prague');
1616

1717

18-
function test(\Closure $function): void
18+
function test(string $title, Closure $function): void
1919
{
2020
$function();
2121
}

0 commit comments

Comments
 (0)