Assert
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
eloc 13
c 1
b 0
f 0
dl 0
loc 15
ccs 12
cts 12
cp 1
1
<?php
2
3
namespace VGirol\JsonApiAssert\Laravel;
4
5
use VGirol\JsonApiAssert\Assert as JsonApiAssert;
6
use VGirol\JsonApiAssert\Laravel\Asserts\Content\AssertIncluded;
7
use VGirol\JsonApiAssert\Laravel\Asserts\Content\AssertJsonapiObject;
8
use VGirol\JsonApiAssert\Laravel\Asserts\Content\AssertLinks;
9
use VGirol\JsonApiAssert\Laravel\Asserts\Content\AssertPagination;
10
use VGirol\JsonApiAssert\Laravel\Asserts\Response\AssertCreated;
11
use VGirol\JsonApiAssert\Laravel\Asserts\Response\AssertDeleted;
12
use VGirol\JsonApiAssert\Laravel\Asserts\Response\AssertErrorResponse;
13
use VGirol\JsonApiAssert\Laravel\Asserts\Response\AssertFetched;
14
use VGirol\JsonApiAssert\Laravel\Asserts\Response\AssertFetchedCollection;
15
use VGirol\JsonApiAssert\Laravel\Asserts\Response\AssertFetchedRelationships;
16
use VGirol\JsonApiAssert\Laravel\Asserts\Response\AssertNoContent;
17
use VGirol\JsonApiAssert\Laravel\Asserts\Response\AssertUpdated;
18
19
/**
20
 * This class provide a set of assertions to test API response using the JSON:API specification.
21
 */
22
class Assert extends JsonApiAssert
23
{
24 2
    use AssertErrorResponse;
25 2
    use AssertNoContent;
26 2
    use AssertCreated;
0 ignored issues
show
Bug introduced by
The trait VGirol\JsonApiAssert\Lar...\Response\AssertCreated requires the property $headers which is not provided by VGirol\JsonApiAssert\Laravel\Assert.
Loading history...
27 2
    use AssertDeleted;
28 2
    use AssertUpdated;
29 2
    use AssertFetched;
30 2
    use AssertFetchedCollection;
31 2
    use AssertFetchedRelationships;
32
33 2
    use AssertPagination;
34 2
    use AssertLinks;
35 2
    use AssertJsonapiObject;
36 2
    use AssertIncluded;
37
}
38