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

AssertInclude::assertIncludeObjectContains()   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
trait AssertInclude
7
{
8
    /**
9
     * Asserts that an array of included resource objects contains a given resource object or collection.
10
     *
11
     * @param array $expected
12
     * @param array $json
13
     */
14
    public static function assertIncludeObjectContains($expected, $json)
15
    {
16
        static::assertResourceCollectionContains($expected, $json);
17
    }
18
}
19