test: fix negative tests by including table headers. closes #18

This commit is contained in:
fiachra mcdermott 2021-06-29 00:26:56 -04:00
parent b607d290cc
commit afa4144523
3 changed files with 3 additions and 1 deletions

View File

@ -143,6 +143,7 @@ Feature: Eloquent Builder Types
"""
When I run Psalm
Then I see these errors
| Type | Message |
| MixedInferredReturnType | Could not verify return type 'Illuminate\Database\Eloquent\Builder<User>' for UserRepository::test_failure |
| MixedReturnStatement | Could not infer a return type |

View File

@ -117,7 +117,7 @@ Feature: path helpers
require_once app()->make('path.public');
"""
When I run Psalm
Then I see these no errors
Then I see no errors
Scenario: resource path can be resolved
Given I have the following code

View File

@ -33,4 +33,5 @@ Feature: taint
"""
When I run Psalm with taint analysis
Then I see these errors
| Type | Message |
| TaintedInput | Detected tainted sql in path: Illuminate\Http\Request::input (/Users/brownma/Desktop/git/laravel-psalm-plugin/src/Stubs/InteractsWithInput.stubphp:22:21) -> $input (somefile.php:9:3) -> Illuminate\Support\Facades\DB::raw#1 (/Users/brownma/Desktop/git/laravel-psalm-plugin/src/Stubs/DBFacade.stubphp:15:25) |