コード例 #1
0
 public function testByte_Read()
 {
     $this->transport->write(TestTJSONProtocol_Fixtures::$testArgsJSON['testByte']);
     $args = new \ThriftTest\ThriftTest_testByte_args();
     $args->read($this->protocol);
     $actual = $args->thing;
     $expected = Fixtures::$testArgs['testByte'];
     $this->assertEquals($expected, $actual);
 }
コード例 #2
0
 public function testByte_Write()
 {
     $args = new \ThriftTest\ThriftTest_testByte_args();
     $args->thing = Fixtures::$testArgs['testByte'];
     $args->write($this->protocol);
     $actual = $this->transport->read(BUFSIZ);
     $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testByte'];
     $this->assertEquals($expected, $actual);
 }