예제 #1
0
 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
 static function gc($file = NULL)
 {
     if ($file) {
         unset(xp::$errors[$file]);
     } else {
         xp::$errors = array();
     }
 }