cvs: pear /Crypt_GPG/tests DriverTestCase.php
| From: | Michael Gauthier | Date: | Mon, 31 Mar 2008 14:51:42 +0000 |
| Subject: | cvs: pear /Crypt_GPG/tests DriverTestCase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-51758@lists.php.net to get a copy of this message | ||
gauthierm Mon Mar 31 14:51:42 2008 UTC
Modified files:
/pear/Crypt_GPG/tests DriverTestCase.php
Log:
Catch all error types in unit tests.
http://cvs.php.net/viewvc.cgi/pear/Crypt_GPG/tests/DriverTestCase.php?r1=1.3&r2=1.4&diff_format=u
Index: pear/Crypt_GPG/tests/DriverTestCase.php
diff -u pear/Crypt_GPG/tests/DriverTestCase.php:1.3 pear/Crypt_GPG/tests/DriverTestCase.php:1.4
--- pear/Crypt_GPG/tests/DriverTestCase.php:1.3 Fri Mar 28 18:35:45 2008
+++ pear/Crypt_GPG/tests/DriverTestCase.php Mon Mar 31 14:51:42 2008
@@ -31,7 +31,7 @@
* @author Michael Gauthier <mike@silverorange.com>
* @copyright 2005-2008 silverorange
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
- * @version CVS: $Id: DriverTestCase.php,v 1.3 2008/03/28 18:35:45 gauthierm Exp $
+ * @version CVS: $Id: DriverTestCase.php,v 1.4 2008/03/31 14:51:42 gauthierm Exp $
* @link http://pear.php.net/package/Crypt_GPG
*/
@@ -85,11 +85,15 @@
private $_gpg;
+ private $_old_error_level;
+
// }}}
// {{{ setUp()
public function setUp()
{
+ $this->_old_error_level = error_reporting(E_ALL | E_STRICT);
+
// {{{ pubring data
$pubring_data = <<<TEXT
mQGiBEeQxrgRBACsmocYdCV79P6fsNF+Bs8Xxmt/mmWpPWWH8RpguEdEqy57
@@ -364,6 +368,8 @@
}
rmdir(self::HOMEDIR);
+
+ error_reporting($this->_old_error_level);
}
// }}}