Completed
Push — master ( a787fa...dc9af5 )
by Vincent
05:35
created

AssertJsonapi   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A assertJsonapiObjectEquals() 0 3 1
1
<?php
2
declare (strict_types = 1);
3
4
namespace VGirol\JsonApiAssert\Asserts\Content;
5
6
use PHPUnit\Framework\Assert as PHPUnit;
7
8
/**
9
 * Assertions relating to the pagination
10
 */
11
trait AssertJsonapi
12
{
13
    /**
14
     * Asserts that a jsonapi object equals an expected array.
15
     *
16
     * @param array $expected
17
     * @param array $json
18
     * @return void
19
     * @throws \PHPUnit\Framework\ExpectationFailedException
20
     */
21
    public static function assertJsonapiObjectEquals($expected, $json): void
22
    {
23
        PHPUnit::assertSame($expected, $json);
24
    }
25
}
26