Skip to content

Commit

Permalink
feat: descriptionless arch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jun 8, 2024
1 parent 774ee84 commit 0518fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* argument is the test description; the second argument
* is a closure that contains the test expectations.
*/
function arch(string $description, ?Closure $closure = null): TestCall
function arch(?string $description = null, ?Closure $closure = null): TestCall
{
$test = test($description, $closure);
$test = test(...func_get_args());

assert(! $test instanceof HigherOrderTapProxy);

Expand Down

0 comments on commit 0518fcc

Please sign in to comment.