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

AssertJsonapi::assertJsonapiObjectEquals()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 2
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