17 lines
482 B
PHP
17 lines
482 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Tests\Architecture;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Tests\Architecture\Concerns\ScansArchitecture;
|
|
|
|
final class ServiceBoundaryTest extends TestCase
|
|
{
|
|
use ScansArchitecture;
|
|
|
|
public function test_domain_services_do_not_read_http_or_global_request_state(): void
|
|
{
|
|
$this->assertFilesDoNotContain('app/Domain', ['Illuminate\\Http\\Request', 'auth()', 'request()', 'session()', '$_GET', '$_POST', '$_SERVER']);
|
|
}
|
|
}
|