Skip to content
Permalink
Browse files

Add in some brackets

  • Loading branch information...
dakota committed Jun 14, 2016
1 parent 26cbd91 commit 2af2dc8c368ade3f0f2f7e1758a91c1e14f347a1
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Validation/ValidatorAwareTrait.php
  2. +1 −1 tests/TestCase/ORM/TableTest.php
@@ -111,7 +111,7 @@ public function validator($name = null, Validator $validator = null)
}
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));
}
}
@@ -3242,7 +3242,7 @@ public function testValidationWithDefiner()
*
* @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()
{

0 comments on commit 2af2dc8

Please sign in to comment.
You can’t perform that action at this time.