public function __construct() { if (!is_callable('gen_handle')) { throw new Exception('Cannot start XportLog requires func/gen package: gen_handle'); } $this->sig = gen_handle(); }
protected function genHandle() { return $this->handle = gen_handle(); }
public function testGenHandle() { $this->assertEquals(6, strlen(gen_handle())); $this->assertEquals(8, strlen(gen_handle(8))); }