Permalink
Browse files

Disable warnings temporarily to avoid safe mode kvetching about realp…

…ath().
  • Loading branch information...
1 parent 0a348dc commit 39773bc6ebbe3299bb670dbc36afc2f4c8c1e804 @convissor convissor committed Dec 23, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/PEAR_Registry/api1_1/test_hasWriteAccess.phpt
@@ -24,7 +24,9 @@ safe_mode_include_dir=/
safe_mode_allowed_env_vars=HOME,PHP_
--FILE--
<?php
+$prior_er = error_reporting(error_reporting() & ~E_WARNING);
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
+error_reporting($prior_er);
if (OS_UNIX) {
$phpunit->assertErrorsF(array(
array('package' => 'PEAR_Error', 'message' => 'registerRoles: opendir(%sPEAR/Installer/Role) failed: does not exist/is not directory')

0 comments on commit 39773bc

Please sign in to comment.