1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00

Add test to verify that CallMap is OK

This commit is contained in:
Manuel VACELET 2021-10-05 15:04:42 +02:00
parent d561b29e4d
commit 1a3d360b14

30
tests/SomeTest.php Normal file
View File

@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
namespace Psalm\Tests;
use Psalm\Context;
class SomeTest extends TestCase
{
public function testStuff()
{
$this->addFile(
'somefile.php',
'<?php
class A
{
}
$reflected_class = new ReflectionClass(A::class);
$reflected_class->getReflectionConstants(1);
'
);
$this->analyzeFile('somefile.php', new Context());
}
}