-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
vendor/bin/pest --filter=ArchTest --no-coverage
Runtime: PHPUnit 12.3.7 using PHP 8.4.11 (cli) on Linux
Pest\Exceptions\FatalException
Allowed memory size of 536870912 bytes exhausted (tried to allocate 266240 bytes)
at vendor/nikic/php-parser/lib/PhpParser/Lexer.php:31
27▕ }
28▕
29▕ $scream = ini_set('xdebug.scream', '0');
30▕
➜ 31▕ $tokens = @Token::tokenize($code);
32▕ $this->postprocessTokens($tokens, $errorHandler);
33▕
34▕ if (false !== $scream) {
35▕ ini_set('xdebug.scream', $scream);
<?php
arch()->expect('App\Traits')
->toBeTraits();
arch()->expect('App\Concerns')
->toBeTraits();
arch()->expect('App\Enums')
->toBeEnums();
arch()->expect('App\Features')
->toBeClasses();
arch()->expect('App\Features')
->toHaveMethod('resolve');
arch()->expect('App\Http\Middleware')
->classes()
->toHaveMethod('handle');
arch()->expect('App\Models')
->classes()
->toExtend('Illuminate\Database\Eloquent\Model')
->ignoring('App\Models\Scopes');
arch()->expect('App\Models')
->classes()
->not->toHaveSuffix('Model');
arch()->expect('App\Http\Requests')
->classes()
->toHaveSuffix('Request');
arch()->expect('App\Console\Commands')
->classes()
->toHaveSuffix('Command');
arch()->expect('App\Console\Commands')
->classes()
->toExtend('Illuminate\Console\Command');
arch()->expect('App\Console\Commands')
->classes()
->toHaveMethod('handle');
arch()->expect('App')
->not->toExtend('Illuminate\Console\Command')
->ignoring('App\Console\Commands');
arch()->expect('App\Mail')
->classes()
->toExtend('Illuminate\Mail\Mailable');
arch()->expect('App')
->not->toExtend('Illuminate\Mail\Mailable')
->ignoring('App\Mail');
arch()->expect('App\Jobs')
->classes()
->toImplement('Illuminate\Contracts\Queue\ShouldQueue');
arch()->expect('App\Jobs')
->classes()
->toHaveMethod('handle');
arch()->expect('App\Listeners')
->toHaveMethod('handle');
arch()->expect('App')
->not->toExtend('Illuminate\Notifications\Notification')
->ignoring('App\Notifications');
arch()->expect('App\Providers')
->toHaveSuffix('ServiceProvider');
arch()->expect('App\Providers')
->toExtend('Illuminate\Support\ServiceProvider');
arch()->expect('App')
->not->toExtend('Illuminate\Support\ServiceProvider')
->ignoring('App\Providers');
arch()->expect('App')
->not->toHaveSuffix('ServiceProvider')
->ignoring('App\Providers');
arch()->expect('App')
->not->toHaveSuffix('Controller')
->ignoring('App\Http\Controllers');
arch()->expect('App\Http\Controllers')
->classes()
->toHaveSuffix('Controller');
arch()->expect(['dd'])->not->toBeUsed();
arch()->expect('App\Http\Controllers')
->toHaveLineCountLessThan(1300);
arch()->expect('App\Services')
->toHaveLineCountLessThan(1200)
->ignoring('App\Services\NotaFiscal');
arch()->expect('App\Models')
->toHaveLineCountLessThan(700);
Metadata
Metadata
Assignees
Labels
No labels