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); }
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); }