public function FlashBagTest::testAll 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::testAll()
File
- vendor/
symfony/ http-foundation/ Tests/ Session/ Flash/ FlashBagTest.php, line 87
Class
- FlashBagTest
- FlashBagTest.
Namespace
Symfony\Component\HttpFoundation\Tests\Session\FlashCode
public function testAll() {
$this->bag
->set('notice', 'Foo');
$this->bag
->set('error', 'Bar');
$this
->assertEquals(array(
'notice' => array(
'Foo',
),
'error' => array(
'Bar',
),
), $this->bag
->all());
$this
->assertEquals(array(), $this->bag
->all());
}