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

AssertInclude   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
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 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A assertIncludeObjectContains() 0 3 1
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