mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Add test
This commit is contained in:
parent
1aba202a5a
commit
55cbbd4fe7
20
tests/CoreStubsTest.php
Normal file
20
tests/CoreStubsTest.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Psalm\Tests;
|
||||
|
||||
class CoreStubsTest extends TestCase
|
||||
{
|
||||
use Traits\ValidCodeAnalysisTestTrait;
|
||||
|
||||
/**
|
||||
* @return iterable<string,array{string,assertions?:array<string,string>,error_levels?:string[]}>
|
||||
*/
|
||||
public function providerValidCodeParse(): iterable
|
||||
{
|
||||
yield 'RecursiveArrayIterator::CHILD_ARRAYS_ONLY (#6464)' => [
|
||||
'<?php
|
||||
|
||||
new RecursiveArrayIterator([], RecursiveArrayIterator::CHILD_ARRAYS_ONLY);'
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user