We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f81959 commit 3dc6981Copy full SHA for 3dc6981
tests/Test.php
@@ -1,13 +1,15 @@
1
<?php
2
3
-/**
4
- * @param mixed $input The variable to be passed to the function.
5
- */
6
-it('returns an empty string', function ($input) {
+$inputBuildsExpectedEmptyString = function ($input) : void {
7
$output = html_build_attributes($input);
8
9
expect($output)->toBeString()->toBeEmpty();
10
-})->with([
+};
+
+/**
+ * @param mixed $input The variable to be passed to the function.
11
+ */
12
+it('returns an empty string', $inputBuildsExpectedEmptyString)->with([
13
'scalar',
14
(new stdClass()),
15
(new ArrayIterator()),
0 commit comments