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

Make warnings raised during test execution fail these tests #22

Merged
merged 7 commits into from
May 18, 2023

Conversation

thekid
Copy link
Member

@thekid thekid commented May 18, 2023

This pull request adds back a previously unported feature from xp-framework/unittest: Any warning raised within a test will mark the test as failed.

Test

use test\Test;

class WarningsTest {

  #[Test]
  public function raise() {
    trigger_error('Test', E_USER_DEPRECATED);
  }
}

Output

Output

See also

@thekid thekid merged commit 16a83d5 into main May 18, 2023
@thekid thekid deleted the feature/warnings-fail-tests branch May 18, 2023 11:58
@thekid
Copy link
Member Author

thekid commented May 18, 2023

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