cakephp2-php8/lib/Cake/Test
ndm2 87d86aaed9 Fix/tighten Folder::inPath() checks.
The current checks are way too relaxed, and are more like testing
for a substring, which makes it easy for invalid paths to slip
trough, for example `/foo/var/www` is falsely tested to reside in
`/var/www`.

Passing an empty path never worked properly, it was triggering a
warning, didn't worked on Windows, and the behavior that the current
top level directory would be assumed for empty paths wasn't
documented.

Similar is true for relative paths. While they did match at one point,
this was incorrect behavior, and matching actual path fragments seems
out of scope for this method.

This change makes the `$path` argument required, requires it to be an
absolute path, and throws an exception in case a non-absolute path is
being passed.
2016-08-26 13:45:45 +02:00
..
bake_compare Various improvements to the CakePHP test files 2015-09-25 17:22:00 +02:00
Case Fix/tighten Folder::inPath() checks. 2016-08-26 13:45:45 +02:00
Fixture Remove superfluous "Class" from doc blocks 2016-08-10 12:22:09 +02:00
test_app Remove superfluous "Class" from doc blocks 2016-08-10 12:22:09 +02:00