public function testStringMap_Read() { $this->transport->write(TestTJSONProtocol_Fixtures::$testArgsJSON['testStringMap']); $args = new \ThriftTest\ThriftTest_testStringMap_args(); $args->read($this->protocol); $actual = $args->thing; $expected = Fixtures::$testArgs['testStringMap']; $this->assertEquals($expected, $actual); }
public function testStringMap_Write() { $args = new \ThriftTest\ThriftTest_testStringMap_args(); $args->thing = Fixtures::$testArgs['testStringMap']; $args->write($this->protocol); $actual = $this->transport->read(BUFSIZ); $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testStringMap']; $this->assertEquals($expected, $actual); }