コード例 #1
0
 public function testMap_Read()
 {
     $this->transport->write(TestTJSONProtocol_Fixtures::$testArgsJSON['testMap']);
     $args = new \ThriftTest\ThriftTest_testMap_args();
     $args->read($this->protocol);
     $actual = $args->thing;
     $expected = Fixtures::$testArgs['testMap'];
     $this->assertEquals($expected, $actual);
 }
コード例 #2
0
 public function testMap_Write()
 {
     $args = new \ThriftTest\ThriftTest_testMap_args();
     $args->thing = Fixtures::$testArgs['testMap'];
     $args->write($this->protocol);
     $actual = $this->transport->read(BUFSIZ);
     $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testMap'];
     $this->assertEquals($expected, $actual);
 }