Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for anonymous tests #1315

Open
wants to merge 3 commits into
base: 3.x
Choose a base branch
from

Conversation

andaniel05
Copy link

What:

  • Bug Fix
  • New Feature

Description:

Sometimes we start thinking about the test code rather than its title.

Given these situations, I think it makes sense to allow specifying the closure from the first argument and in that case, take as title the relative path of the test file and the line where the closure is defined. In those cases, it would be necessary to be able to filter this type of tests.

<?php

test(function () {
    expect(true)->toBe(true);
});

Output result:

imagen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant