mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
feat: initial work on presets
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
|
||||
PASS Tests\Arch
|
||||
✓ expect ['dd', 'dump', 'ray', …] → not → toBeUsed → ignoring 'Pest\Expectation'
|
||||
✓ expect ['Pest'] → each → toUseStrictTypes
|
||||
✓ globals
|
||||
✓ dependencies
|
||||
✓ contracts
|
||||
@ -1266,7 +1268,7 @@
|
||||
✓ closure was bound to CustomTestCase
|
||||
|
||||
PASS Tests\Playground
|
||||
✓ basic
|
||||
✓ expect ['Pest'] → each → toUseStrictTypes
|
||||
|
||||
PASS Tests\Plugins\Traits
|
||||
✓ it allows global uses
|
||||
@ -1461,4 +1463,4 @@
|
||||
WARN Tests\Visual\Version
|
||||
- visual snapshot of help command output
|
||||
|
||||
Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 24 skipped, 1042 passed (2563 assertions)
|
||||
Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 24 skipped, 1044 passed (2565 assertions)
|
||||
@ -2,6 +2,10 @@
|
||||
|
||||
use Pest\Expectation;
|
||||
|
||||
arch()->preset()->base()->ignoring(Expectation::class);
|
||||
|
||||
arch()->preset()->strict();
|
||||
|
||||
arch('globals')
|
||||
->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep'])
|
||||
->not->toBeUsed()
|
||||
@ -30,4 +34,6 @@ arch('contracts')
|
||||
'NunoMaduro\Collision\Contracts',
|
||||
'Pest\Factories\TestCaseMethodFactory',
|
||||
'Symfony\Component\Console',
|
||||
'Pest\Arch\Contracts',
|
||||
'Pest\PendingCalls',
|
||||
])->toBeInterfaces();
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
<?php
|
||||
|
||||
test('basic', function () {
|
||||
expect(true)->toBeTrue();
|
||||
});
|
||||
arch()->preset()->strict();
|
||||
|
||||
@ -16,7 +16,7 @@ $run = function () {
|
||||
|
||||
test('parallel', function () use ($run) {
|
||||
expect($run('--exclude-group=integration'))
|
||||
->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 19 skipped, 1028 passed (2531 assertions)')
|
||||
->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 19 skipped, 1030 passed (2533 assertions)')
|
||||
->toContain('Parallel: 3 processes');
|
||||
})->skipOnWindows();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user