Exemple #1
0
 public function test_write()
 {
     $strio = new AvroStringIO();
     $this->assertEquals(0, $strio->tell());
     $str = 'foo';
     $strlen = strlen($str);
     $this->assertEquals($strlen, $strio->write($str));
     $this->assertEquals($strlen, $strio->tell());
 }