コード例 #1
0
ファイル: lang.base.php プロジェクト: johannes85/core
 static function gc($file = null)
 {
     if ($file) {
         unset(xp::$errors[$file]);
     } else {
         xp::$errors = [];
     }
 }
コード例 #2
0
 /**
  * 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
0
 /**
  * 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
0
ファイル: lang.base.php プロジェクト: Gamepay/xp-framework
 static function gc($file = NULL)
 {
     if ($file) {
         unset(xp::$errors[$file]);
     } else {
         xp::$errors = array();
     }
 }