public function testGenerateRandomSetsWork() { for ($i = 0; $i <= 1000; $i++) { $tiny = new Tiny(Tiny::generate_set()); $this->assertEquals($tiny->from($tiny->to($i)), $i); } }
/** * Do the tiny conversion. * @param string $text */ public function tiny($id) { return $this->tiny->to($id); }
/** * {@inheritdoc} * * @param string $str String to obfuscate. * @return string */ public function obfuscate($str) { return $this->_tiny->to($str); }