projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c6be7b
)
CRM_Core_ErrorTest - Fix local failiure (observed in OS X 10.7, MAMP 2.x)
author
Tim Otten
<totten@civicrm.org>
Thu, 28 Aug 2014 05:18:52 +0000
(22:18 -0700)
committer
Tim Otten
<totten@civicrm.org>
Thu, 28 Aug 2014 05:22:48 +0000
(22:22 -0700)
tests/phpunit/CRM/Core/ErrorTest.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/CRM/Core/ErrorTest.php
b/tests/phpunit/CRM/Core/ErrorTest.php
index 580196fa7e2e97851322a8a78261ba728af229c2..a3c570781ad3acadcc427ce7b66105734797731c 100644
(file)
--- a/
tests/phpunit/CRM/Core/ErrorTest.php
+++ b/
tests/phpunit/CRM/Core/ErrorTest.php
@@
-97,8
+97,8
@@
class CRM_Core_ErrorTest extends CiviUnitTestCase {
*/
function assertLogRegexp($pattern) {
$config = CRM_Core_Config::singleton();
- $logFiles = glob($config->configAndLogDir.'/CiviCRM*
log*/
');
- $this->assertEquals(1, count($logFiles));
+ $logFiles = glob($config->configAndLogDir.'/CiviCRM*
.log
');
+ $this->assertEquals(1, count($logFiles)
, 'Expect to find 1 file matching: ' . $config->configAndLogDir.'/CiviCRM*log*/'
);
foreach ($logFiles as $logFile) {
$this->assertRegexp($pattern, file_get_contents($logFile));
}