예제 #1
0
파일: Log.php 프로젝트: openlss/lib-xport
 public function __construct()
 {
     if (!is_callable('gen_handle')) {
         throw new Exception('Cannot start XportLog requires func/gen package: gen_handle');
     }
     $this->sig = gen_handle();
 }
예제 #2
0
 protected function genHandle()
 {
     return $this->handle = gen_handle();
 }
예제 #3
0
 public function testGenHandle()
 {
     $this->assertEquals(6, strlen(gen_handle()));
     $this->assertEquals(8, strlen(gen_handle(8)));
 }