本文整理汇总了PHP中xp::errors方法的典型用法代码示例。如果您正苦于以下问题:PHP xp::errors方法的具体用法?PHP xp::errors怎么用?PHP xp::errors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xp
的用法示例。
在下文中一共展示了xp::errors方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gc
static function gc($file = null)
{
if ($file) {
unset(xp::$errors[$file]);
} else {
xp::$errors = [];
}
}
示例2: setUp
/**
* Setup method. Ensures xp error registry is initially empty and
* that the error reporting level is set to E_ALL (which is done
* in lang.base.php).
*/
public function setUp()
{
$this->assertEquals(E_ALL, error_reporting(), 'Error reporting level not E_ALL');
\xp::$errors = [];
}
示例3: setUp
/**
* Setup method. Ensures xp error registry is initially empty and
* that the error reporting level is set to E_ALL (which is done
* in lang.base.php).
*
*/
public function setUp()
{
$this->assertEquals(E_ALL, error_reporting(), 'Error reporting level not E_ALL');
xp::$errors = array();
$this->assertEmpty(xp::$errors, 'Error registry initially not empty');
}
示例4: gc
static function gc($file = NULL)
{
if ($file) {
unset(xp::$errors[$file]);
} else {
xp::$errors = array();
}
}