예제 #1
0
 public function testGetPageCache()
 {
     $pc = new PageCache();
     $result = $pc->getPageCache();
     $this->assertSame(false, $result);
     $pc->destroy();
     $pc = new PageCache(__DIR__ . '/config_test.php');
     $pc->setPath(vfsStream::url('tmpdir') . '/');
     $pc->init();
     $output = 'Testing output for getPageCache()';
     echo $output;
     ob_end_flush();
     $this->assertEquals($output, $pc->getPageCache());
 }