- Add friendsofphp/php-cs-fixer to require-dev - Create .php-cs-fixer.dist.php configured for @PSR12 ruleset - Add php-cs-fixer dry-run step to CI pipeline - Auto-fix existing PSR-12 violations - Document code style tooling in readme.md
29 lines
586 B
PHP
29 lines
586 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Tests\Unit\Trait;
|
|
|
|
use App\Trait\CookieNameTrait;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class CookieNameTraitTest extends TestCase
|
|
{
|
|
use CookieNameTrait;
|
|
|
|
public function testCookieName(): void
|
|
{
|
|
self::assertSame('__Host-Http-Preauth', $this->cookieName());
|
|
}
|
|
|
|
public function testAuthCookieName(): void
|
|
{
|
|
self::assertSame('__Http-Domain-Preauth', $this->authCookieName());
|
|
}
|
|
|
|
public function testHeaderName(): void
|
|
{
|
|
self::assertSame('X-Preauth', $this->headerName());
|
|
}
|
|
}
|