/**
  * @depends testAddInstantInfoMessage
  */
 public function testAddInstantWarningMessage(\Krucas\Notification\NotificationsBag $bag)
 {
     $bag->warningInstant('w m');
     $this->assertCount(9, $bag->all());
     $this->assertInstanceOf('Krucas\\Notification\\Collection', $bag->all());
     $this->assertInstanceOf('Krucas\\Notification\\Message', $bag->get('warning')[2]);
     $this->assertEquals('w m', $bag->get('warning')[2]->getMessage());
     $this->assertEquals('warning', $bag->get('warning')[2]->getType());
     $this->assertEquals('<div class="alert alert-:type">:message</div>', $bag->get('warning')[2]->getFormat());
     $this->assertFalse($bag->get('warning')[2]->isFlashable());
     return $bag;
 }