znt/module/cache/test/model/clear.php

29 lines
722 B
PHP
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env php
<?php
/**
title=测试 cacheModel::clear();
timeout=0
cid=15524
- 执行cacheModel模块的clear方法参数是true @~~
- 执行cacheModel模块的clear方法参数是false @~~
- 执行cacheModel模块的clear方法 @~~
- 执行cacheModel模块的clear方法参数是true @~~
- 执行cacheModel模块的clear方法参数是false @~~
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
su('admin');
global $tester;
$cacheModel = $tester->loadModel('cache');
r($cacheModel->clear(true)) && p() && e(0);
r($cacheModel->clear(false)) && p() && e(0);
r($cacheModel->clear()) && p() && e(0);
r($cacheModel->clear(true)) && p() && e(0);
r($cacheModel->clear(false)) && p() && e(0);