Skip to content

Commit 3dc6981

Browse files
committed
Update Pest integration for empty string test
1 parent 9f81959 commit 3dc6981

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/Test.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
22

3-
/**
4-
* @param mixed $input The variable to be passed to the function.
5-
*/
6-
it('returns an empty string', function ($input) {
3+
$inputBuildsExpectedEmptyString = function ($input) : void {
74
$output = html_build_attributes($input);
85

96
expect($output)->toBeString()->toBeEmpty();
10-
})->with([
7+
};
8+
9+
/**
10+
* @param mixed $input The variable to be passed to the function.
11+
*/
12+
it('returns an empty string', $inputBuildsExpectedEmptyString)->with([
1113
'scalar',
1214
(new stdClass()),
1315
(new ArrayIterator()),

0 commit comments

Comments
 (0)