diff --git a/composer.json b/composer.json index 94228da3..b3670a11 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "nunomaduro/collision": "^7.5.0", "nunomaduro/termwind": "^1.15.1", "pestphp/pest-plugin": "^2.0.1", - "pestphp/pest-plugin-arch": "^2.1.1", + "pestphp/pest-plugin-arch": "^2.1.2", "phpunit/phpunit": "^10.1.1" }, "conflict": { diff --git a/tests/Features/Expect/HigherOrder/methods.php b/tests/Features/Expect/HigherOrder/methods.php index 85942c46..eba3be28 100644 --- a/tests/Features/Expect/HigherOrder/methods.php +++ b/tests/Features/Expect/HigherOrder/methods.php @@ -85,16 +85,16 @@ it('works with higher order tests') it('can use the scoped method to lock into the given level for expectations', function () { expect(new HasMethods()) ->attributes()->scoped(fn ($attributes) => $attributes - ->name->toBe('Has Methods') - ->quantity->toBe(20) + ->name->toBe('Has Methods') + ->quantity->toBe(20) ) ->name()->toBeString()->toBe('Has Methods') ->newInstance()->newInstance()->scoped(fn ($instance) => $instance - ->name()->toBe('Has Methods') - ->quantity()->toBe(20) - ->attributes()->scoped(fn ($attributes) => $attributes - ->name->toBe('Has Methods') - ->quantity->toBe(20) + ->name()->toBe('Has Methods') + ->quantity()->toBe(20) + ->attributes()->scoped(fn ($attributes) => $attributes + ->name->toBe('Has Methods') + ->quantity->toBe(20) ) ); }); diff --git a/tests/Features/Expect/pipes.php b/tests/Features/Expect/pipes.php index 81fecd6a..5a99b5f6 100644 --- a/tests/Features/Expect/pipes.php +++ b/tests/Features/Expect/pipes.php @@ -171,19 +171,19 @@ test('pipe works with negated expectation', function () use ($state) { $state->reset(); expect($char)->not->toBe(new Char('B')) - ->and($state) - ->runCount->toMatchArray([ - 'char' => 1, - 'number' => 0, - 'wildcard' => 0, - 'symbol' => 0, - ]) - ->appliedCount->toMatchArray([ - 'char' => 1, - 'number' => 0, - 'wildcard' => 0, - 'symbol' => 0, - ]); + ->and($state) + ->runCount->toMatchArray([ + 'char' => 1, + 'number' => 0, + 'wildcard' => 0, + 'symbol' => 0, + ]) + ->appliedCount->toMatchArray([ + 'char' => 1, + 'number' => 0, + 'wildcard' => 0, + 'symbol' => 0, + ]); }); test('interceptor is applied', function () use ($state) {