recursiveStartP() public method

See also: recursiveStart()
public recursiveStartP ( $base, $id, $sub = null, $lifetime = null, $print = true, $fail = false )
Esempio n. 1
0
 private function startEnd(CacheAbstract $cache)
 {
     $base = 'startend';
     $cache->cleanP($base, 1);
     $this->assertFalse($cache->recursiveStartP($base, 1));
     echo 'start!';
     $cache->recursiveend(false);
     ob_start();
     ob_implicit_flush(false);
     $this->assertTrue($cache->recursiveStartP($base, 1) !== false);
     $data = ob_get_contents();
     ob_end_clean();
     $this->assertEquals('start!', $data);
     $cache->cleanP($base, 1);
 }