mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
tests: clarifies dependencies
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
PASS Tests\Arch
|
PASS Tests\Arch
|
||||||
✓ globals
|
✓ globals
|
||||||
|
✓ dependencies
|
||||||
✓ contracts
|
✓ contracts
|
||||||
|
|
||||||
PASS Tests\Features\AfterAll
|
PASS Tests\Features\AfterAll
|
||||||
@ -942,4 +943,4 @@
|
|||||||
PASS Tests\Visual\Version
|
PASS Tests\Visual\Version
|
||||||
✓ visual snapshot of help command output
|
✓ visual snapshot of help command output
|
||||||
|
|
||||||
Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 18 skipped, 643 passed (1585 assertions)
|
Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 18 skipped, 644 passed (1586 assertions)
|
||||||
@ -7,6 +7,23 @@ test('globals')
|
|||||||
->not->toBeUsed()
|
->not->toBeUsed()
|
||||||
->ignoring(Expectation::class);
|
->ignoring(Expectation::class);
|
||||||
|
|
||||||
|
test('dependencies')
|
||||||
|
->expect('Pest')
|
||||||
|
->toOnlyUse([
|
||||||
|
'dd',
|
||||||
|
'dump',
|
||||||
|
'expect',
|
||||||
|
'uses',
|
||||||
|
'Termwind',
|
||||||
|
'ParaTest',
|
||||||
|
'Pest\Arch',
|
||||||
|
'Pest\Plugin',
|
||||||
|
'NunoMaduro\Collision',
|
||||||
|
'Whoops',
|
||||||
|
'Symfony\Component\Console',
|
||||||
|
'Symfony\Component\Process',
|
||||||
|
])->ignoring(['Composer', 'PHPUnit', 'SebastianBergmann']);
|
||||||
|
|
||||||
test('contracts')
|
test('contracts')
|
||||||
->expect('Pest\Contracts')
|
->expect('Pest\Contracts')
|
||||||
->toOnlyUse([
|
->toOnlyUse([
|
||||||
|
|||||||
@ -15,6 +15,6 @@ $run = function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
test('parallel', function () use ($run) {
|
test('parallel', function () use ($run) {
|
||||||
expect($run())->toContain('Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 15 skipped, 634 passed (1572 assertions)')
|
expect($run())->toContain('Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 15 skipped, 635 passed (1573 assertions)')
|
||||||
->toContain('Parallel: 3 processes');
|
->toContain('Parallel: 3 processes');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user