mirror of
https://github.com/opdavies/build-configs.git
synced 2025-08-20 12:50:33 +01:00
22 lines
501 B
PHP
22 lines
501 B
PHP
|
<?php
|
||
|
|
||
|
use App\IgnoreFile;
|
||
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||
|
|
||
|
class IgnoreFileTest extends KernelTestCase
|
||
|
{
|
||
|
public function tearDown(): void
|
||
|
{
|
||
|
@unlink(IgnoreFile::FILENAME);
|
||
|
|
||
|
parent::tearDown();
|
||
|
}
|
||
|
|
||
|
public function test_it_parses_a_list_of_file_names_from_an_ignore_file(): void
|
||
|
{
|
||
|
file_put_contents(IgnoreFile::FILENAME, join("\n", ['phpstan.neon.dist']));
|
||
|
|
||
|
self::assertSame(['phpstan.neon.dist'], IgnoreFile::parse());
|
||
|
}
|
||
|
}
|