/** * Encode the given integer. * * @param int $value * * @return int */ public function encode($value) { return $this->obfuscator->encode($value); }
public function testEncodeBadStrings() { $this->setExpectedException('InvalidArgumentException'); $optimus = new Optimus(1580030173, 59260789); $optimus->encode("foo"); }