1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 00:39:38 +01:00
psalm/tests/EndToEnd/DestructiveAutoloaderTest.php

24 lines
511 B
PHP
Raw Normal View History

<?php
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 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', '<')) {
$this->markTestSkipped('Test case requires PHP 7.2.');
}
$this->runPsalm(['--no-cache'], __DIR__ . '/' . '../fixtures/DestructiveAutoloader/', true);
}
}