Пример #1
0
 public function testIdenticalMessagesNotReturned()
 {
     $this->validator->setMessage('Default error message');
     $this->assertFalse($this->validator->isValid('invalid'));
     $messages = $this->validator->getMessages();
     $this->assertCount(1, $messages);
     $this->assertEquals('Default error message', reset($messages));
 }