Author: ihabunek
Date: Sat Sep 18 09:18:13 2010
New Revision: 998427
URL: http://svn.apache.org/viewvc?rev=998427&view=rev
Log:
Added @expectedException to a test which causes an error to be triggered.
Modified:
logging/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php
Modified:
logging/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php
URL:
http://svn.apache.org/viewvc/logging/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php?rev=998427&r1=998426&r2=998427&view=diff
==============================================================================
---
logging/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php
(original)
+++
logging/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php
Sat Sep 18 09:18:13 2010
@@ -91,6 +91,10 @@ class LoggerConfiguratorIniTest extends
self :: assertNotNull($catchedException);
}
+ /**
+ * @expectedException PHPUnit_Framework_Error
+ * (needed because configuring with an empty properties file raises an
error)
+ */
public function testConfigureWithEmptyIniFile() {
$catchedException = null;
try {