1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Added test

This commit is contained in:
Bruce Weirdan 2021-09-08 22:41:23 +03:00
parent c13ed7cc28
commit beb0476eed
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D

View File

@ -0,0 +1,24 @@
<?php
namespace Psalm\Tests;
class SuperGlobalsTest extends TestCase
{
use Traits\ValidCodeAnalysisTestTrait;
/**
* @return iterable<string,array{string,assertions?:array<string,string>,error_levels?:string[]}>
*/
public function providerValidCodeParse(): iterable
{
yield 'http_response_headerIsList' => [
'<?php
/** @return list<string> */
function returnsList(): array {
return $http_response_header;
}
',
'assertions' => []
];
}
}