chore: style

This commit is contained in:
nuno maduro
2026-07-19 00:42:29 +01:00
parent f8c4c061f8
commit cd0e921158
14 changed files with 28 additions and 0 deletions
+2
View File
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
use Pest\Expectation; use Pest\Expectation;
use Pest\Plugins\Tia\BaselineSync; use Pest\Plugins\Tia\BaselineSync;
+2
View File
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
$file = __DIR__.DIRECTORY_SEPARATOR.'after-all-test'; $file = __DIR__.DIRECTORY_SEPARATOR.'after-all-test';
beforeAll(function () use ($file): void { beforeAll(function () use ($file): void {
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
beforeEach()->expect(true)->toBeTrue(); beforeEach()->expect(true)->toBeTrue();
test('runs 1', function (): void { test('runs 1', function (): void {
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
beforeEach()->skip(); beforeEach()->skip();
test('does not run 1', function (): void { test('does not run 1', function (): void {
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
test('enum is backed by int') test('enum is backed by int')
->expect('Tests\Fixtures\Arch\ToBeIntBackedEnum\HasIntBacking') ->expect('Tests\Fixtures\Arch\ToBeIntBackedEnum\HasIntBacking')
->toBeIntBackedEnum(); ->toBeIntBackedEnum();
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
test('enum is backed by string') test('enum is backed by string')
->expect('Tests\Fixtures\Arch\ToBeStringBackedEnum\HasStringBacking') ->expect('Tests\Fixtures\Arch\ToBeStringBackedEnum\HasStringBacking')
->toBeStringBackedEnum(); ->toBeStringBackedEnum();
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
use Pest\Arch\Exceptions\ArchExpectationFailedException; use Pest\Arch\Exceptions\ArchExpectationFailedException;
use Tests\Fixtures\Arch\ToHaveAttribute\Attributes\AsAttribute; use Tests\Fixtures\Arch\ToHaveAttribute\Attributes\AsAttribute;
+2
View File
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
use PHPUnit\Framework\ExpectationFailedException; use PHPUnit\Framework\ExpectationFailedException;
$test_array = [ $test_array = [
+2
View File
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
use Pest\Arch\Exceptions\ArchExpectationFailedException; use Pest\Arch\Exceptions\ArchExpectationFailedException;
test('missing prefix') test('missing prefix')
+2
View File
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
use Pest\Arch\Exceptions\ArchExpectationFailedException; use Pest\Arch\Exceptions\ArchExpectationFailedException;
test('missing suffix') test('missing suffix')
+2
View File
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
use PHPUnit\Framework\AssertionFailedError; use PHPUnit\Framework\AssertionFailedError;
it('may fail', function (): void { it('may fail', function (): void {
+2
View File
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
it('may fail', function (): void { it('may fail', function (): void {
$this->fail(); $this->fail();
})->fails(); })->fails();
+2
View File
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
test('a test', function (): void { test('a test', function (): void {
$this->assertArrayHasKey('key', ['key' => 'foo']); $this->assertArrayHasKey('key', ['key' => 'foo']);
}); });
+2
View File
@@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
use Pest\Plugins\Tia\ContentHash; use Pest\Plugins\Tia\ContentHash;
describe('of()', function (): void { describe('of()', function (): void {