예제 #1
0
 public function testGetMainMessageShouldApplyTemplatePlaceholders()
 {
     $sampleValidationException = new ValidationException();
     $sampleValidationException->configure('foo', array('bar' => 1, 'baz' => 2));
     $sampleValidationException->setTemplate('{{name}} {{bar}} {{baz}}');
     $this->assertEquals('foo 1 2', $sampleValidationException->getMainMessage());
 }