toUse` 会空过(pest-plugin-arch 4.0.2 实测)。 */ foreach ([ 'App\Http\Controllers\V3', 'App\Http\Requests\V3', 'App\Http\Resources\V3', 'App\Services\V3', 'App\Services\ChannelService', ] as $layer) { arch("{$layer} does not use ChannelApi") ->expect($layer) ->not->toUse('App\Http\Api\ChannelApi'); }