mirror of
https://github.com/danog/psalm-plugin-phpunit.git
synced 2024-11-29 20:19:08 +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"?>
|
||||
<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"
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user