Skip to content

Commit

Permalink
Add expectations
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Aug 3, 2023
1 parent 2cc15ab commit 11c2114
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fixtures/empty-fixture-has-no-errors/expectations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"errors": []
}
10 changes: 10 additions & 0 deletions fixtures/test-something/expectations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"errors": [
{
"file": "code.php",
"message": "PHPUnit\\Framework\\Exception is thrown but not caught - please either catch or add a @throws annotation",
"severity": "error",
"type": "MissingThrowsDocblock"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"errors": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"errors": [
{
"file": "code.php",
"message": "Argument 1 of Vendor\\Package\\MyTestCase::expectException expects class-string<Throwable>, but Vendor\\Package\\MyTestCase::class provided",
"severity": "error",
"type": "InvalidArgument"
},
{
"file": "code.php",
"message": "Cannot find any calls to method Vendor\\Package\\MyTestCase::testSomething",
"severity": "error",
"type": "PossiblyUnusedMethod"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"errors": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"errors": []
}
3 changes: 3 additions & 0 deletions fixtures/testcase-with-data-provider-tag/expectations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"errors": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"errors": []
}

0 comments on commit 11c2114

Please sign in to comment.