public function testReadInt16BE() { $buffer = new Buffer(pack('n', 0xbabe)); $this->assertSame(0xbabe, $buffer->readInt16BE(0)); }