public function AutoExpireFlashBagTest::testPeek in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/Session/Flash/AutoExpireFlashBagTest.php \Symfony\Component\HttpFoundation\Tests\Session\Flash\AutoExpireFlashBagTest::testPeek()
File
- vendor/
symfony/ http-foundation/ Tests/ Session/ Flash/ AutoExpireFlashBagTest.php, line 76
Class
- AutoExpireFlashBagTest
- AutoExpireFlashBagTest.
Namespace
Symfony\Component\HttpFoundation\Tests\Session\FlashCode
public function testPeek() {
$this
->assertEquals(array(), $this->bag
->peek('non_existing'));
$this
->assertEquals(array(
'default',
), $this->bag
->peek('non_existing', array(
'default',
)));
$this
->assertEquals(array(
'A previous flash message',
), $this->bag
->peek('notice'));
$this
->assertEquals(array(
'A previous flash message',
), $this->bag
->peek('notice'));
}