Skip to content

Commit

Permalink
Fix tests for new version psalm
Browse files Browse the repository at this point in the history
Signed-off-by: Mougrim <[email protected]>
  • Loading branch information
mougrim committed May 22, 2022
1 parent b1cad15 commit e1a4e2e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion psalm.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<psalm
totallyTyped="true"
errorLevel="1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/Prophecy.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature: Prophecy
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true" %s>
<psalm errorLevel="1" %s>
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>
Expand Down
6 changes: 3 additions & 3 deletions tests/acceptance/TestCase.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature: TestCase
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true" %s>
<psalm errorLevel="1" %s>
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>
Expand Down Expand Up @@ -693,8 +693,8 @@ Feature: TestCase
"""
When I run Psalm
Then I see these errors
| Type | Message |
| InvalidArgument | Argument 1 of NS\MyTestCase::testSomething has no default value, but possibly undefined int provided by NS\MyTestCase::provide():(iterable<string, array{0?: int}>) |
| Type | Message |
| InvalidArgument | Argument 1 of NS\MyTestCase::testSomething is not optional, but possibly undefined int provided by NS\MyTestCase::provide():(iterable<string, array{0?: int}>) |
And I see no other errors

Scenario: Stateful grandchild test case with setUp produces no MissingConstructor
Expand Down

0 comments on commit e1a4e2e

Please sign in to comment.