tests/Extensions/Issue169/IssueTest.php
/**
     * Test encoder will serialize into arrays.
     *
     * @see https://github.com/neomerx/json-api/issues/169
     */
Test encoder will serialize into arrays.
Test encoder will serialize into arrays .
public function testMetaSerialization(): void
    {
        $meta = ['some meta'];
        $encoder = CustomEncoder::instance();
        $this->assertEquals(['meta' => $meta], $encoder->serializeMeta($meta));
    }
public function testMetaSerialization ( ) : void { $ meta = [ 'some meta' ] ; $ encoder = CustomEncoder :: instance ( ) ; $ this -> assertEquals ( [ 'meta' => $ meta ] , $ encoder -> serializeMeta ( $ meta ) ) ; }
Test encoder will serialize into arrays.
Test encoder will serialize into arrays .
/** @var CustomEncoder $encoder */