public function testFlash()
 {
     $helper = new SessionHelper($this->request);
     $this->assertTrue($helper->hasFlash('foo'));
     $this->assertEquals('bar', $helper->getFlash('foo'));
     $this->assertEquals('foo', $helper->getFlash('bar', 'foo'));
     $this->assertNull($helper->getFlash('foobar'));
     $this->assertEquals(array('foo' => 'bar'), $helper->getFlashes());
 }
 public function testFlash()
 {
     $helper = new SessionHelper($this->requestStack);
     $this->assertTrue($helper->hasFlash('notice'));
     $this->assertEquals(array('bar'), $helper->getFlash('notice'));
 }