public function FlashBagTest::testPeek in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Tests/Session/Flash/FlashBagTest.php \Symfony\Component\HttpFoundation\Tests\Session\Flash\FlashBagTest::testPeek()
File
- vendor/
symfony/ http-foundation/ Tests/ Session/ Flash/ FlashBagTest.php, line 71
Class
- FlashBagTest
- FlashBagTest.
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('not_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'));
}