Respect\Validation\Exceptions\ValidationExceptionTest::testGetMainMessageShouldApplyTemplatePlaceholders PHP Метод

testGetMainMessageShouldApplyTemplatePlaceholders() публичный Метод

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