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

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

public testJsonSerialize ( )
    public function testJsonSerialize()
    {
        $expectedJson = '{"one":"11","two":"2"}';
        $properties = new \ArrayIterator([new PropertyStub('one', '1'), new PropertyStub('one', '11'), new PropertyStub('two', '2'), new PropertyStub('three', ''), new PropertyStub('', '4')]);
        $this->properties->expects($this->once())->method('getIterator')->will($this->returnValue($properties));
        $this->assertSame($expectedJson, $this->propertyList->jsonSerialize());
    }