mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
24 lines
498 B
PHP
24 lines
498 B
PHP
<?php
|
|
|
|
namespace Psalm\Tests\EndToEnd;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
use function version_compare;
|
|
|
|
use const PHP_VERSION;
|
|
|
|
class SuicidalAutoloaderTest extends TestCase
|
|
{
|
|
use PsalmRunnerTrait;
|
|
|
|
public function testSucceedsWithEmptyFile(): void
|
|
{
|
|
if (version_compare(PHP_VERSION, '7.2.0', '<')) {
|
|
$this->markTestSkipped('Test case requires PHP 7.2.');
|
|
}
|
|
|
|
$this->runPsalm(['--no-cache'], __DIR__ . '/' . '../fixtures/SuicidalAutoloader');
|
|
}
|
|
}
|