⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 magic_db.test.php

📁 Cake Framwork , Excellent
💻 PHP
📖 第 1 页 / 共 5 页
字号:
 * The MagicDb instance to be tested * * @var object * @access public */	var $Db = null;/** * Sets up a MagicDb class instance for testing * * @access public */	function setUp() {		$this->Db =& new MagicDb();	}/** * MagicDb::analyze should properly detect the file type and output additional info as requested. * * @access public */	function testAnalyze() {		$r = $this->Db->read(MagicDbTestData::get('magic.db'));		$this->assertTrue($r === true);		$r = $this->Db->analyze(array());		$this->assertTrue($r === false);		$r = $this->Db->analyze(WWW_ROOT.'img'.DS.'cake.icon.gif');		// TODO: Check several serialized file samples for accurate detection	}/** * MagicDb::read should properly read MagicDb databases from .php-/.db-files and plain data arguments passed in and return false if the file wasn't found or * if the readed data did not validate. *

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -