Example #1
0
 public function testAddNotificationArray()
 {
     View::useLib('Mock');
     $view = new View();
     $view->notify(array('success', 'reload'));
     $this->assertEqual('reload', array_pop($view->getNotifs()));
     $this->assertEqual(2, count($view->getNotifs()));
 }