Example #1
0
 public function testDouble_Read()
 {
     $this->transport->write(TestTJSONProtocol_Fixtures::$testArgsJSON['testDouble']);
     $args = new \ThriftTest\ThriftTest_testDouble_args();
     $args->read($this->protocol);
     $actual = $args->thing;
     $expected = Fixtures::$testArgs['testDouble'];
     $this->assertEquals($expected, $actual);
 }
 public function testDouble_Write()
 {
     $args = new \ThriftTest\ThriftTest_testDouble_args();
     $args->thing = Fixtures::$testArgs['testDouble'];
     $args->write($this->protocol);
     $actual = $this->transport->read(BUFSIZ);
     $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testDouble'];
     $this->assertEquals($expected, $actual);
 }