cakephp2-php8/lib/Cake/Test/Case
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
..
Cache Remove superfluous "Class" from doc blocks 2016-08-10 12:22:09 +02:00
Configure Remove superfluous "Class" from doc blocks 2016-08-10 12:22:09 +02:00
Console Remove superfluous "Class" from doc blocks 2016-08-10 12:22:09 +02:00
Controller Remove superfluous "Class" from doc blocks 2016-08-10 12:22:09 +02:00
Core Remove lighthouse references 2016-02-10 12:27:34 +01:00
Error Updated test method name and description 2016-07-14 04:57:25 +02:00
Event Various improvements to the CakePHP test files 2015-09-25 17:22:00 +02:00
I18n Use correct context when parsing MO file. 2015-12-18 12:59:00 +02:00
Log Remove superfluous "Class" from doc blocks 2016-08-10 12:22:09 +02:00
Model Add tests covering basic use of <> in deleteAll() 2016-08-13 22:48:02 -04:00
Network Restore header() behavior inadvertantely removed. 2016-08-11 21:54:24 -04:00
Routing Remove superfluous "Class" from doc blocks 2016-08-10 12:22:09 +02:00
TestSuite Remove superfluous "Class" from doc blocks 2016-08-10 12:22:09 +02:00
Utility Fix/tighten Folder::inPath() checks. 2016-08-26 13:45:45 +02:00
View Removed bug fix for Helper::_confirm to keep the code compatible 2016-08-21 17:09:43 +02:00
AllBehaviorsTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllCacheTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllComponentsTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllConfigureTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllConsoleTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllControllerTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllCoreTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllDatabaseTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllDbRelatedTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllErrorTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllEventTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllHelpersTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllI18nTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllLogTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllNetworkTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllRoutingTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllTestsTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllTestSuiteTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllUtilityTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllViewTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
BasicsTest.php use constant PHP_SAPI 2015-07-26 15:35:03 +02:00