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