2019-11-30 07:09:07 +02: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 00:49:06 -05:00
|
|
|
if (\version_compare(\PHP_VERSION, '7.2.0', '<')) {
|
2019-11-30 00:46:19 -05:00
|
|
|
$this->markTestSkipped('Test case requires PHP 7.2.');
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-11-30 00:27:07 -05:00
|
|
|
$this->runPsalm(['--no-cache'], __DIR__ . '/' . '../fixtures/SuicidalAutoloader/');
|
2019-11-30 07:09:07 +02:00
|
|
|
}
|
|
|
|
}
|