Ejemplo n.º 1
0
 public function testI64_Read()
 {
     $this->transport->write(TestTJSONProtocol_Fixtures::$testArgsJSON['testI64']);
     $args = new \ThriftTest\ThriftTest_testI64_args();
     $args->read($this->protocol);
     $actual = $args->thing;
     $expected = Fixtures::$testArgs['testI64'];
     $this->assertEquals($expected, $actual);
 }
Ejemplo n.º 2
0
 public function testI64_Write()
 {
     $args = new \ThriftTest\ThriftTest_testI64_args();
     $args->thing = Fixtures::$testArgs['testI64'];
     $args->write($this->protocol);
     $actual = $this->transport->read(BUFSIZ);
     $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testI64'];
     $this->assertEquals($expected, $actual);
 }