/** * Tests buffer short methods. */ public function testShort() { $buffer = new Buffer(self::ALPHABET); $buffer->appendShort(10); $int = $buffer->getShort(26); $this->assertEquals($int, 10); $this->complete(); }