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
declare(strict_types=1);
use Pest\Expectation;
use Pest\Plugins\Tia\BaselineSync;
+2
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
$file = __DIR__.DIRECTORY_SEPARATOR.'after-all-test';
beforeAll(function () use ($file): void {
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
beforeEach()->expect(true)->toBeTrue();
test('runs 1', function (): void {
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
beforeEach()->skip();
test('does not run 1', function (): void {
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
test('enum is backed by int')
->expect('Tests\Fixtures\Arch\ToBeIntBackedEnum\HasIntBacking')
->toBeIntBackedEnum();
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
test('enum is backed by string')
->expect('Tests\Fixtures\Arch\ToBeStringBackedEnum\HasStringBacking')
->toBeStringBackedEnum();
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Pest\Arch\Exceptions\ArchExpectationFailedException;
use Tests\Fixtures\Arch\ToHaveAttribute\Attributes\AsAttribute;
+2
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use PHPUnit\Framework\ExpectationFailedException;
$test_array = [
+2
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Pest\Arch\Exceptions\ArchExpectationFailedException;
test('missing prefix')
+2
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Pest\Arch\Exceptions\ArchExpectationFailedException;
test('missing suffix')
+2
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use PHPUnit\Framework\AssertionFailedError;
it('may fail', function (): void {
+2
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
it('may fail', function (): void {
$this->fail();
})->fails();
+2
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
test('a test', function (): void {
$this->assertArrayHasKey('key', ['key' => 'foo']);
});
+2
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Pest\Plugins\Tia\ContentHash;
describe('of()', function (): void {