filter(fn (SplFileInfo $file): bool => str_ends_with($file->getFilename(), '.php')) ->map(fn (SplFileInfo $file): string => file_get_contents($file->getPathname()) ?: '') ->implode("\n"); expect($runtimeFiles) ->not->toContain('namespace App\\Services\\TenantConfiguration\\Exchange') ->not->toContain('namespace App\\Services\\TenantConfiguration\\Teams') ->not->toContain('ExchangeProviderAdapter') ->not->toContain('TeamsProviderAdapter') ->not->toContain('GraphV1Adapter') ->not->toContain('ProviderV1') ->not->toContain('dual_write') ->not->toContain('tenant_configuration_exchange') ->not->toContain('tenant_configuration_teams'); expect(glob(database_path('migrations/*exchange*')) ?: [])->toBe([]) ->and(glob(database_path('migrations/*teams*')) ?: [])->toBe([]); });