Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }