Emarref\Jwt\Token\PayloadTest::testJsonSerialize PHP Метод

testJsonSerialize() публичный Метод

public testJsonSerialize ( )
    public function testJsonSerialize()
    {
        $expectedJson = '{"whatever":true}';
        $this->claims->expects($this->once())->method('jsonSerialize')->will($this->returnValue($expectedJson));
        $this->assertSame($expectedJson, $this->payload->jsonSerialize());
    }