mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add test/doc for reverse Folder::inPath()
This commit is contained in:
parent
6ad3bd451e
commit
deb5a57cb9
2 changed files with 4 additions and 1 deletions
|
@ -122,6 +122,9 @@ class FolderTest extends CakeTestCase {
|
|||
|
||||
$result = $Folder->inPath(DS . 'non-existing' . $inside);
|
||||
$this->assertFalse($result);
|
||||
|
||||
$result = $Folder->inPath($path . DS . 'Model', true);
|
||||
$this->assertTrue($result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -322,7 +322,7 @@ class Folder {
|
|||
* Returns true if the File is in given path.
|
||||
*
|
||||
* @param string $path The path to check that the current pwd() resides with in.
|
||||
* @param boolean $reverse
|
||||
* @param boolean $reverse Reverse the search, check that pwd() resides within $path.
|
||||
* @return boolean
|
||||
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#Folder::inPath
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue