GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#3)
by Markus
02:16
created

ArrayAccessValidationFailedTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 10
dl 0
loc 22
rs 10
c 1
b 1
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A it_can_return_errors() 0 17 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Mschindler83\Tests\ArrayAccess;
5
6
use Mschindler83\ArrayAccess\ArrayAccessValidationFailed;
7
use Opis\JsonSchema\ValidationError;
8
use PHPUnit\Framework\TestCase;
9
10
class ArrayAccessValidationFailedTest extends TestCase
11
{
12
    /**
13
     * @test
14
     */
15
     public function it_can_return_errors(): void
16
     {
17
         $error1 = new ValidationError(null, ['e1dp1', 'e1dp2'], [], false, 'kw1');
18
         $error2 = new ValidationError(null, ['e2dp1', 'e2dp2'], [], false, 'kw2');
19
20
         $exception = ArrayAccessValidationFailed::withValidationErrors($error1, $error2);
21
22
         static::assertSame(
23
             [
24
                 'e1dp1' => [
25
                     'e1dp2' => 'kw1'
26
                 ],
27
                 'e2dp1' => [
28
                     'e2dp2' => 'kw2'
29
                 ],
30
             ],
31
             $exception->errorMapping()->data()
32
         );
33
     }
34
}