Fix tests for new version psalm

Signed-off-by: Mougrim <rinat@mougrim.ru>
This commit is contained in:
Mougrim 2022-05-22 17:01:43 +03:00
parent b1cad15b33
commit e1a4e2e287
No known key found for this signature in database
GPG Key ID: C4B95894A535DBB8
3 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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>

View File

@ -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>
@ -694,7 +694,7 @@ 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}>) |
| 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