mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Added test
This commit is contained in:
parent
c13ed7cc28
commit
beb0476eed
24
tests/SuperGlobalsTest.php
Normal file
24
tests/SuperGlobalsTest.php
Normal 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' => []
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user