public function testClearPageCache() { $pc = new PageCache(__DIR__ . '/config_test.php'); $pc->setPath(vfsStream::url('tmpdir') . '/'); $this->assertFalse(file_exists($pc->getFilePath()), 'file exists'); $pc->init(); $output = 'Testing output for clearPageCache()'; echo $output; ob_end_flush(); $this->assertTrue(file_exists($pc->getFilePath()), 'file does not exist'); $pc->clearPageCache(); $this->assertFalse(file_exists($pc->getFilePath()), 'file exists'); }