Exemple #1
0
 function testMaxDepth()
 {
     $source = File_Archive::readMemory('', 'A/B/C/1/A.txt');
     $source->next();
     $predicate = File_Archive::predMaxDepth(4);
     $this->assertTrue($predicate->isTrue($source));
     $predicate = File_Archive::predMaxDepth(3);
     $this->assertFalse($predicate->isTrue($source));
 }