2021-03-11 06:14:22 +01:00
|
|
|
<?php
|
2021-12-15 04:58:32 +01:00
|
|
|
|
2023-10-19 13:12:06 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-03-11 06:14:22 +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;
|
|
|
|
|
2021-03-11 06:14:22 +01:00
|
|
|
class DestructiveAutoloaderTest extends TestCase
|
|
|
|
{
|
|
|
|
use PsalmRunnerTrait;
|
|
|
|
|
|
|
|
public function testSucceedsWithEmptyFile(): void
|
|
|
|
{
|
2021-12-03 21:25:22 +01:00
|
|
|
if (version_compare(PHP_VERSION, '7.2.0', '<')) {
|
2021-03-11 06:14:22 +01:00
|
|
|
$this->markTestSkipped('Test case requires PHP 7.2.');
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->runPsalm(['--no-cache'], __DIR__ . '/' . '../fixtures/DestructiveAutoloader/', true);
|
|
|
|
}
|
|
|
|
}
|