mirror of
https://github.com/opdavies/build-configs.git
synced 2025-06-19 23:31:42 +01:00
26 lines
664 B
PHP
26 lines
664 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());
|
|
}
|
|
|
|
public function test_it_returns_an_empty_array_of_filenames_if_there_is_no_ignore_file(): void
|
|
{
|
|
self::assertSame([], IgnoreFile::parse());
|
|
}
|
|
}
|