1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 17:52:45 +01:00
psalm/tests/EndToEnd/SuicidalAutoloaderTest.php

26 lines
524 B
PHP
Raw Normal View History

<?php
2023-10-19 13:12:06 +02:00
declare(strict_types=1);
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;
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');
}
}