Skip to content

Make warnings raised during test execution fail these tests#22

Merged
thekid merged 7 commits intomainfrom
feature/warnings-fail-tests
May 18, 2023
Merged

Make warnings raised during test execution fail these tests#22
thekid merged 7 commits intomainfrom
feature/warnings-fail-tests

Conversation

@thekid
Copy link
Copy Markdown
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
Copy Markdown
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