TDirectoryCacheDependency performs dependency checking based on the modification time of the files contained in the specified directory. The directory being checked is specified via {@link setDirectory Directory}. By default, all files under the specified directory and subdirectories will be checked. If the last modification time of any of them is changed or if different number of files are contained in a directory, the dependency is reported as changed. By specifying {@link setRecursiveCheck RecursiveCheck} and {@link setRecursiveLevel RecursiveLevel}, one can limit the checking to a certain depth of the subdirectories.
Since: 3.1.0
Author: Qiang Xue (qiang.xue@gmail.com)
Inheritance: extends TCacheDependency
 public function testRecursiveLevel()
 {
     $directory = realpath(dirname(__FILE__) . '/temp');
     $dependency = new TDirectoryCacheDependency(dirname(__FILE__) . '/temp');
     $this->assertEquals($dependency->getRecursiveLevel(), -1);
     $dependency->setRecursiveLevel(5);
     $this->assertEquals($dependency->getRecursiveLevel(), 5);
 }