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 testFlushAtBatchSize()
 {
     $config = self::$simpleConfig;
     $config['batched'] = true;
     $config['batch_size'] = 2;
     $notifier = new RollbarNotifier($config);
     $notifier->report_message("one");
     $this->assertEquals(1, $notifier->queueSize());
     $notifier->report_message("two");
     $this->assertEquals(2, $notifier->queueSize());
     $notifier->report_message("three");
     $this->assertEquals(1, $notifier->queueSize());
 }