inti project
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Tests\Architecture;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class DeprecationPolicyTest extends TestCase
|
||||
{
|
||||
public function test_deprecation_document_exists_with_required_metadata_headings(): void
|
||||
{
|
||||
$path = dirname(__DIR__, 2).'/docs/deprecations.md';
|
||||
$this->assertFileExists($path);
|
||||
$contents = file_get_contents($path) ?: '';
|
||||
foreach (['replacement_route', 'sunset_date', 'owner', 'removal_ticket'] as $required) {
|
||||
$this->assertStringContainsString($required, $contents);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user