Esempio n. 1
0
 public function testNest_Read()
 {
     $this->transport->write(TestTJSONProtocol_Fixtures::$testArgsJSON['testNest']);
     $args = new \ThriftTest\ThriftTest_testNest_args();
     $args->read($this->protocol);
     $actual = $args->thing;
     $expected = Fixtures::$testArgs['testNest'];
     $this->assertEquals($expected, $actual);
 }
 public function testNest_Write()
 {
     $args = new \ThriftTest\ThriftTest_testNest_args();
     $args->thing = Fixtures::$testArgs['testNest'];
     $args->write($this->protocol);
     $actual = $this->transport->read(BUFSIZ);
     $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testNest'];
     $this->assertEquals($expected, $actual);
 }