Browse Source

Add in some brackets

Walther Lalk 9 years ago
parent
commit
2af2dc8c36
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Validation/ValidatorAwareTrait.php
  2. 1 1
      tests/TestCase/ORM/TableTest.php

+ 1 - 1
src/Validation/ValidatorAwareTrait.php

@@ -111,7 +111,7 @@ trait ValidatorAwareTrait
             }
 
             if (!$validator instanceof Validator) {
-                throw new RuntimeException(sprintf('The %s::%s validation method must return an instance of %s.', self::class, 'validation' . ucfirst($name), Validator::class));
+                throw new RuntimeException(sprintf('The %s::%s() validation method must return an instance of %s.', self::class, 'validation' . ucfirst($name), Validator::class));
             }
         }
 

+ 1 - 1
tests/TestCase/ORM/TableTest.php

@@ -3242,7 +3242,7 @@ class TableTest extends TestCase
      *
      * @return void
      * @expectedException \RuntimeException
-     * @expectedExceptionMessage The Cake\ORM\Table::validationBad validation method must return an instance of Cake\Validation\Validator.
+     * @expectedExceptionMessage The Cake\ORM\Table::validationBad() validation method must return an instance of Cake\Validation\Validator.
      */
     public function testValidationWithBadDefiner()
     {