CakeEmail should be handling all the encoding now, duplicating it is silly. Fixes #2797
When extracting model validation messages, Reflection::getFileName is used to obtain the the model filename. The returned value is actual physical path and may differ to what APP is. Adding the realpath(APP) to $paths variable allows str_replace() to correctly generate the correct value for $occurences.
CakeTestSuite::addTestDirectory() and addTestDirectoryRecursive() now ignore any files that do not end in .php This avoids any stray non-php files being parsed, especially tilde-style backup files that end in .php~ Improves #2031 Signed-off-by: mark_story <email@example.com>
…ror messages. Closes #2816
…iew cache is created by 2 threads concurrently.