2019-11-30 06:09:07 +01:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Tests\EndToEnd;
|
|
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
use Symfony\Component\Process\Process;
|
|
|
|
|
|
|
|
class SuicidalAutoloaderTest extends TestCase
|
|
|
|
{
|
|
|
|
use PsalmRunnerTrait;
|
|
|
|
|
|
|
|
public function testSucceedsWithEmptyFile(): void
|
|
|
|
{
|
2019-11-30 06:49:06 +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.');
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-11-30 06:27:07 +01:00
|
|
|
$this->runPsalm(['--no-cache'], __DIR__ . '/' . '../fixtures/SuicidalAutoloader/');
|
2019-11-30 06:09:07 +01:00
|
|
|
}
|
|
|
|
}
|