static function gc($file = null) { if ($file) { unset(xp::$errors[$file]); } else { xp::$errors = []; } }
/** * 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 = []; }
/** * 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'); }
static function gc($file = NULL) { if ($file) { unset(xp::$errors[$file]); } else { xp::$errors = array(); } }