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