mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 10:17:23 +01:00
style: address stan + lint issues
This commit is contained in:
@ -5,9 +5,8 @@ declare(strict_types=1);
|
|||||||
namespace Pest\Concerns;
|
namespace Pest\Concerns;
|
||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
use Pest\Repositories\BeforeEachRepository;
|
|
||||||
use Pest\Support\ExceptionTrace;
|
|
||||||
use Pest\Support\ChainableClosure;
|
use Pest\Support\ChainableClosure;
|
||||||
|
use Pest\Support\ExceptionTrace;
|
||||||
use Pest\TestSuite;
|
use Pest\TestSuite;
|
||||||
use PHPUnit\Framework\ExecutionOrderDependency;
|
use PHPUnit\Framework\ExecutionOrderDependency;
|
||||||
use PHPUnit\Util\Test;
|
use PHPUnit\Util\Test;
|
||||||
|
|||||||
@ -25,7 +25,7 @@ final class TestRepository
|
|||||||
private $state = [];
|
private $state = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array<string, array<int, array<int, string>>>
|
* @var array<string, array<int, array<int, string, Closure>>>
|
||||||
*/
|
*/
|
||||||
private $uses = [];
|
private $uses = [];
|
||||||
|
|
||||||
@ -96,10 +96,10 @@ final class TestRepository
|
|||||||
/**
|
/**
|
||||||
* Uses the given `$testCaseClass` on the given `$paths`.
|
* Uses the given `$testCaseClass` on the given `$paths`.
|
||||||
*
|
*
|
||||||
* @param array<int, string> $classOrTraits
|
* @param array<int, string> $classOrTraits
|
||||||
* @param array<int, string> $groups
|
* @param array<int, string> $groups
|
||||||
* @param array<int, string> $paths
|
* @param array<int, string> $paths
|
||||||
* @param array<intm Closure> $hooks
|
* @param array<int, Closure> $hooks
|
||||||
*/
|
*/
|
||||||
public function use(array $classOrTraits, array $groups, array $paths, array $hooks): void
|
public function use(array $classOrTraits, array $groups, array $paths, array $hooks): void
|
||||||
{
|
{
|
||||||
|
|||||||
@ -8,4 +8,3 @@ afterAll(function () {
|
|||||||
|
|
||||||
test('global afterAll execution order', function () {
|
test('global afterAll execution order', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -21,4 +21,3 @@ test('global afterEach execution order', function () {
|
|||||||
->not()
|
->not()
|
||||||
->toHaveProperty('ith');
|
->toHaveProperty('ith');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -8,4 +8,3 @@ beforeAll(function () {
|
|||||||
|
|
||||||
test('global beforeAll execution order', function () {
|
test('global beforeAll execution order', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -24,4 +24,3 @@ test('global beforeEach execution order', function () {
|
|||||||
->and($this->baz)
|
->and($this->baz)
|
||||||
->toBe(2);
|
->toBe(2);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -10,10 +10,9 @@ uses()
|
|||||||
// dump(0);
|
// dump(0);
|
||||||
// })
|
// })
|
||||||
->afterEach(function () {
|
->afterEach(function () {
|
||||||
$this->ith = 0;
|
$this->ith = 0;
|
||||||
})
|
})
|
||||||
// ->afterAll(function () {
|
// ->afterAll(function () {
|
||||||
// dump(0);
|
// dump(0);
|
||||||
// })
|
// })
|
||||||
->in('Hooks');
|
->in('Hooks');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user