cakephp2-php8/lib/Cake/Test/Case/Utility
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
..
CakeNumberTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
CakeTextTest.php Annotate test coverage 2015-08-11 16:36:09 +02:00
CakeTimeTest.php Attempt to get tests passing on travis. 2016-07-01 17:52:02 -04:00
ClassRegistryTest.php Correct doc blocks according to cs guidelines. 2014-07-03 15:36:42 +02:00
DebuggerTest.php use constant PHP_SAPI 2015-07-26 15:35:03 +02:00
FileTest.php Backport 5714cf14a9ca4b439b872aaf3ad6e5bfddda46ad to 2.x 2015-12-24 16:19:57 -05:00
FolderTest.php Fix/tighten Folder::inPath() checks. 2016-08-26 13:45:45 +02:00
HashTest.php Remove superfluous "Class" from doc blocks 2016-08-10 12:22:09 +02:00
InflectorTest.php Correct inflection of virus. 2015-09-28 21:04:23 -04:00
ObjectCollectionTest.php Various improvements to the CakePHP test files 2015-09-25 17:22:00 +02:00
SanitizeTest.php Various improvements to the CakePHP test files 2015-09-25 17:22:00 +02:00
SecurityTest.php Randomly generate a salt when the salt is '' or null. 2016-04-15 21:49:17 -04:00
SetTest.php Various improvements to the CakePHP test files 2015-09-25 17:22:00 +02:00
ValidationTest.php Fix spacing 2016-04-30 13:13:14 -04:00
XmlTest.php Various improvements to the CakePHP test files 2015-09-25 17:22:00 +02:00