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:
parent
d561b29e4d
commit
1a3d360b14
30
tests/SomeTest.php
Normal file
30
tests/SomeTest.php
Normal 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());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user