Ejemplo n.º 1
0
 /**
  * Test ErrorHandler includes xdebug.scream message
  */
 public function testErrorHandlerXdebugScream()
 {
     ini_set('xdebug.scream', 1);
     $this->setExpectedException('\\ErrorException', 'array_merge(): Argument #2 is not an array' . "\n\nWarning: You have xdebug.scream enabled, the warning above may be" . "\na legitimately suppressed error that you were not supposed to see.");
     ErrorHandler::register();
     @array_merge(array(), 'string');
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     if (function_exists('ini_set')) {
         ini_set('xdebug.show_exception_trace', false);
         ini_set('xdebug.scream', false);
     }
     if (function_exists('date_default_timezone_set') && function_exists('date_default_timezone_get')) {
         date_default_timezone_set(@date_default_timezone_get());
     }
     ErrorHandler::register();
     parent::__construct('virtPHP', Virtphp::VERSION);
 }