function testReadBytes() { $i = 0; foreach ($this->tests as $enc) { $i++; $this->reset($enc); $in = Protobuf::read_bytes($this->fp, strlen($enc)); $this->assertBinaryEqual($enc, $in, "Test {$i} failed to read_bytes(...)"); } }