Phprest\Service\Hateoas\UtilTest::testDefaultSerialize PHP Method

testDefaultSerialize() public method

    public function testDefaultSerialize()
    {
        $request = $this->setRequestParameters('phprest', '2.4', '*/*');
        $result = $this->serialize(['a' => 1, 'b' => 2], $request, new Response());
        $this->assertEquals('{"a":1,"b":2}', $result->getContent());
    }