Skip to content
Permalink
Browse files

Migrating SetTest to phpunit

  • Loading branch information...
lorenzo committed May 19, 2010
1 parent f1eaec1 commit bcc3321bd3f65c735740fd5debb899b7536022d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/tests/cases/libs/validation.test.php
@@ -35,7 +35,7 @@ class CustomValidator {
* @access public
*/
function customValidate($check) {
return preg_match('/^[0-9]{3}$/', $check);
return (bool)preg_match('/^[0-9]{3}$/', $check);
}
}

0 comments on commit bcc3321

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