OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
lcobucci
/
jwt
/
test
/
unit
/
Validation
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:35:52 AM
rwxr-xr-x
📁
Constraint
-
08/12/2024 10:36:32 AM
rwxr-xr-x
📄
RequiredConstraintsViolatedTest.php
854 bytes
08/12/2024 10:35:52 AM
rw-r--r--
📄
ValidatorTest.php
3.75 KB
08/12/2024 10:35:52 AM
rw-r--r--
Editing: RequiredConstraintsViolatedTest.php
Close
<?php declare(strict_types=1); namespace Lcobucci\JWT\Validation; use PHPUnit\Framework\TestCase; /** @coversDefaultClass \Lcobucci\JWT\Validation\RequiredConstraintsViolated */ final class RequiredConstraintsViolatedTest extends TestCase { /** * @test * * @covers ::fromViolations * @covers ::buildMessage * @covers ::violations */ public function fromViolationsShouldConfigureMessageAndViolationList(): void { $violation = new ConstraintViolation('testing'); $exception = RequiredConstraintsViolated::fromViolations($violation); self::assertSame( "The token violates some mandatory constraints, details:\n- testing", $exception->getMessage() ); self::assertSame([$violation], $exception->violations()); } }