public function FlashBagTest::testPeekAll in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/Session/Flash/FlashBagTest.php \Symfony\Component\HttpFoundation\Tests\Session\Flash\FlashBagTest::testPeekAll()
File
- vendor/
symfony/ http-foundation/ Tests/ Session/ Flash/ FlashBagTest.php, line 117
Class
- FlashBagTest
- FlashBagTest.
Namespace
Symfony\Component\HttpFoundation\Tests\Session\FlashCode
public function testPeekAll() {
$this->bag
->set('notice', 'Foo');
$this->bag
->set('error', 'Bar');
$this
->assertEquals(array(
'notice' => array(
'Foo',
),
'error' => array(
'Bar',
),
), $this->bag
->peekAll());
$this
->assertTrue($this->bag
->has('notice'));
$this
->assertTrue($this->bag
->has('error'));
$this
->assertEquals(array(
'notice' => array(
'Foo',
),
'error' => array(
'Bar',
),
), $this->bag
->peekAll());
}