Which produce 28 errors, 11 failures, 59 deprecations, and 33 notices. The tests cover 9 out of 21 classes, 54 out of 83 methods, and 237 out of 442 lines of code.
24 lines
573 B
PHP
24 lines
573 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());
|
|
}
|
|
}
|