Exemple #1
0
 public function testIfWeHaveMessages()
 {
     $this->assertFalse($this->bag->hasMessages());
     $this->bag->addMessage('foo', 'bar');
     $this->assertTrue($this->bag->hasMessages());
     $this->bag->getMessages('bar');
     $this->assertTrue($this->bag->hasMessages());
 }