JsonLDApiTest
        
        extends JsonTestCase
    
    
            
            in package
            
        
    
    
    
Tests JsonLD's API
Tags
Table of Contents
Methods
- assertJsonEquals() : mixed
- Asserts that two JSON structures are equal.
- testCompaction() : mixed
- Tests the compaction API
- testExpansion() : mixed
- Tests the expansion API
- testFlatten() : mixed
- Tests the flattening API
- testFrame() : mixed
- Tests the framing API
- testGetDocument() : mixed
- Tests the document API
Methods
assertJsonEquals()
Asserts that two JSON structures are equal.
    public
            static        assertJsonEquals(object|array<string|int, mixed> $expected, object|array<string|int, mixed> $actual[, string $message = '' ]) : mixed
    Parameters
- $expected : object|array<string|int, mixed>
- $actual : object|array<string|int, mixed>
- $message : string = ''
testCompaction()
Tests the compaction API
    public
                    testCompaction() : mixed
    Tags
testExpansion()
Tests the expansion API
    public
                    testExpansion() : mixed
    Tags
testFlatten()
Tests the flattening API
    public
                    testFlatten() : mixed
    Tags
testFrame()
Tests the framing API
    public
                    testFrame() : mixed
    This test intentionally uses the same fixtures as the flattening tests.
Tags
testGetDocument()
Tests the document API
    public
                    testGetDocument() : mixed
    This test intentionally uses the same fixtures as the flattening tests.