Skip to content

Conversation

@faissaloux
Copy link
Owner

@faissaloux faissaloux commented Jun 20, 2025

This PR introduces a new expectation forbidEmpty(), which makes sure your files does not return any empty value.

Success

// file1.php

return [
    'pest',
    'plugin inside',
];

Fails

// file2.php

return [
    'pest',
    'plugin inside',
    '',
];

Tests

expect('file1.php')->forbidEmpty();    // PASS
expect('file2.php')->forbidEmpty();    // FAILS

@faissaloux faissaloux added this to the 1.9.0 milestone Jun 20, 2025
@faissaloux faissaloux self-assigned this Jun 20, 2025
@faissaloux faissaloux added the enhancement New feature or request label Jun 20, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jun 20, 2025

Codecov Report

Attention: Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.

Project coverage is 93.37%. Comparing base (5fdcd00) to head (f00bd07).

Files with missing lines Patch % Lines
src/Investigator.php 75.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #21      +/-   ##
============================================
- Coverage     93.93%   93.37%   -0.57%     
- Complexity       59       65       +6     
============================================
  Files             5        5              
  Lines           165      181      +16     
============================================
+ Hits            155      169      +14     
- Misses           10       12       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@faissaloux faissaloux merged commit b4a76a0 into main Jun 20, 2025
168 of 220 checks passed
@faissaloux faissaloux deleted the forbidEmpty branch June 20, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants