2019-11-30 06:09:07 +01:00
|
|
|
<?php
|
2021-12-15 04:58:32 +01:00
|
|
|
|
2023-10-19 13:12:06 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2019-11-30 06:09:07 +01:00
|
|
|
namespace Psalm\Tests\EndToEnd;
|
|
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
|
2021-12-03 21:07:25 +01:00
|
|
|
use function version_compare;
|
|
|
|
|
2021-12-03 21:25:22 +01:00
|
|
|
use const PHP_VERSION;
|
|
|
|
|
2019-11-30 06:09:07 +01:00
|
|
|
class SuicidalAutoloaderTest extends TestCase
|
|
|
|
{
|
|
|
|
use PsalmRunnerTrait;
|
|
|
|
|
|
|
|
public function testSucceedsWithEmptyFile(): void
|
|
|
|
{
|
2021-12-03 21:25:22 +01:00
|
|
|
if (version_compare(PHP_VERSION, '7.2.0', '<')) {
|
2019-11-30 06:46:19 +01:00
|
|
|
$this->markTestSkipped('Test case requires PHP 7.2.');
|
|
|
|
}
|
|
|
|
|
2023-06-07 08:12:31 +02:00
|
|
|
$this->runPsalm(['--no-cache'], __DIR__ . '/' . '../fixtures/SuicidalAutoloader');
|
2019-11-30 06:09:07 +01:00
|
|
|
}
|
|
|
|
}
|