tests/Extensions/Issue67/IssueTest.php
/**
     * Test encoder will create instances of child classes.
     *
     * @see https://github.com/neomerx/json-api/issues/67
     */
Test encoder will create instances of child classes.
Test encoder will create instances of child classes .
public function testEnheritedEncoder(): void
    {
        $childEncoder = CustomEncoder::instance();
        $this->assertEquals(CustomEncoder::class, get_class($childEncoder));
    }
public function testEnheritedEncoder ( ) : void { $ childEncoder = CustomEncoder :: instance ( ) ; $ this -> assertEquals ( CustomEncoder :: class , get_class ( $ childEncoder ) ) ; }
Test encoder will create instances of child classes.
Test encoder will create instances of child classes .