mirror of
https://github.com/danog/psalm-plugin-phpunit.git
synced 2024-12-02 09:27:56 +01:00
Fix tests for new version psalm
Signed-off-by: Mougrim <rinat@mougrim.ru>
This commit is contained in:
parent
b1cad15b33
commit
e1a4e2e287
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<psalm
|
<psalm
|
||||||
totallyTyped="true"
|
errorLevel="1"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xmlns="https://getpsalm.org/schema/config"
|
xmlns="https://getpsalm.org/schema/config"
|
||||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||||
|
@ -7,7 +7,7 @@ Feature: Prophecy
|
|||||||
Given I have the following config
|
Given I have the following config
|
||||||
"""
|
"""
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<psalm totallyTyped="true" %s>
|
<psalm errorLevel="1" %s>
|
||||||
<projectFiles>
|
<projectFiles>
|
||||||
<directory name="."/>
|
<directory name="."/>
|
||||||
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>
|
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>
|
||||||
|
@ -7,7 +7,7 @@ Feature: TestCase
|
|||||||
Given I have the following config
|
Given I have the following config
|
||||||
"""
|
"""
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<psalm totallyTyped="true" %s>
|
<psalm errorLevel="1" %s>
|
||||||
<projectFiles>
|
<projectFiles>
|
||||||
<directory name="."/>
|
<directory name="."/>
|
||||||
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>
|
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>
|
||||||
@ -693,8 +693,8 @@ Feature: TestCase
|
|||||||
"""
|
"""
|
||||||
When I run Psalm
|
When I run Psalm
|
||||||
Then I see these errors
|
Then I see these errors
|
||||||
| Type | Message |
|
| 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
|
And I see no other errors
|
||||||
|
|
||||||
Scenario: Stateful grandchild test case with setUp produces no MissingConstructor
|
Scenario: Stateful grandchild test case with setUp produces no MissingConstructor
|
||||||
|
Loading…
Reference in New Issue
Block a user