示例#1
0
 public function testTypedef_Read()
 {
     $this->transport->write(TestTJSONProtocol_Fixtures::$testArgsJSON['testTypedef']);
     $args = new \ThriftTest\ThriftTest_testTypedef_args();
     $args->read($this->protocol);
     $actual = $args->thing;
     $expected = Fixtures::$testArgs['testTypedef'];
     $this->assertEquals($expected, $actual);
 }
 public function testTypedef_Write()
 {
     $args = new \ThriftTest\ThriftTest_testTypedef_args();
     $args->thing = Fixtures::$testArgs['testTypedef'];
     $args->write($this->protocol);
     $actual = $this->transport->read(BUFSIZ);
     $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testTypedef'];
     $this->assertEquals($expected, $actual);
 }