Example #1
0
 protected function setUp()
 {
     parent::setUp();
     $this->bag = new FlashBag();
     $this->array = array('new' => array('notice' => array('A previous flash message')));
     $this->bag->initialize($this->array);
 }
 public function testPeekAll()
 {
     $array = array('new' => array('notice' => 'Foo', 'error' => 'Bar'));
     $this->bag->initialize($array);
     $this->assertEquals(array('notice' => 'Foo', 'error' => 'Bar'), $this->bag->peekAll());
     $this->assertEquals(array('notice' => 'Foo', 'error' => 'Bar'), $this->bag->peekAll());
 }