Skip to content

Commit

Permalink
Merge pull request #119 from mougrim/master
Browse files Browse the repository at this point in the history
Fix tests for new version psalm
  • Loading branch information
orklah committed May 22, 2022
2 parents b1cad15 + e1a4e2e commit 89841a6
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
@@ -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
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
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 89841a6

Please sign in to comment.