Пример #1
0
 public function testI32_Read()
 {
     $this->transport->write(TestTJSONProtocol_Fixtures::$testArgsJSON['testI32']);
     $args = new \ThriftTest\ThriftTest_testI32_args();
     $args->read($this->protocol);
     $actual = $args->thing;
     $expected = Fixtures::$testArgs['testI32'];
     $this->assertEquals($expected, $actual);
 }
Пример #2
0
 public function testI32_Write()
 {
     $args = new \ThriftTest\ThriftTest_testI32_args();
     $args->thing = Fixtures::$testArgs['testI32'];
     $args->write($this->protocol);
     $actual = $this->transport->read(BUFSIZ);
     $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testI32'];
     $this->assertEquals($expected, $actual);
 }