Example #1
0
 public static function flush()
 {
     if (self::$instance == null) {
         return;
     }
     self::$instance->flush();
 }
Example #2
0
 public static function flush()
 {
     self::$instance->flush();
 }
 /**
  * Flush the rollbar Notifier.
  */
 public function flush()
 {
     $this->rollbarNotifier->flush();
 }
 public function testBlockingBatched()
 {
     $config = self::$simpleConfig;
     $config['batched'] = true;
     $notifier = new RollbarNotifier($config);
     $uuid = $notifier->report_message('Hello world');
     $this->assertValidUUID($uuid);
     $this->assertEquals(1, $notifier->queueSize());
     $notifier->flush();
     $this->assertEquals(0, $notifier->queueSize());
 }