diff --git a/tests/Arch.php b/tests/Arch.php index 9cb689bd..fa05e9ae 100644 --- a/tests/Arch.php +++ b/tests/Arch.php @@ -4,9 +4,13 @@ namespace Tests; -test('All source files are strictly typed')->expect('OpenBreweryDb\\')->toUseStrictTypes(); +test('All source files are strictly typed') + ->expect('OpenBreweryDb\\') + ->toUseStrictTypes(); -test('All tests files are strictly typed')->expect('Tests\\')->toUseStrictTypes(); +test('All tests files are strictly typed') + ->expect('Tests\\') + ->toUseStrictTypes(); test('Value objects should be immutable') ->expect('OpenBreweryDb\\ValueObjects\\') @@ -14,6 +18,12 @@ ->and('OpenBreweryDb\\ValueObjects\\') ->toBeReadonly(); +test('Responses should be immutable') + ->expect('OpenBreweryDb\\Responses\\Breweries\\') + ->toBeFinal() + ->and('OpenBreweryDb\\Responses\\Breweries\\') + ->toBeReadonly(); + test('Contracts should be abstract') ->expect('OpenBreweryDb\\Contracts\\') ->toBeInterfaces();