public function testEnum_Read() { $this->transport->write(TestTJSONProtocol_Fixtures::$testArgsJSON['testEnum']); $args = new \ThriftTest\ThriftTest_testEnum_args(); $args->read($this->protocol); $actual = $args->thing; $expected = Fixtures::$testArgs['testEnum']; $this->assertEquals($expected, $actual); }
public function testEnum_Write() { $args = new \ThriftTest\ThriftTest_testEnum_args(); $args->thing = Fixtures::$testArgs['testEnum']; $args->write($this->protocol); $actual = $this->transport->read(BUFSIZ); $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testEnum']; $this->assertEquals($expected, $actual); }