Issue Type: Unit Tests: Improvement Created: 2010-06-18T18:17:42.000+0000 Last Updated: 2010-07-06T19:33:46.000+0000 Status: Resolved Fix version(s): - 1.10.7 (28/Jul/10)
Reporter: Ramon Henrique Ornelas (ramon) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Log
Related issues: - ZF-7603
The issue ZF-7603 was reopened (by Freeaqingme) request that the tests were added, but not exists Zend_Log_Writer_SyslogTest. Also not exists test to Zend_Log_Writer_ZendMonitor.
Freeaqingme suggested (in discussion #zftalk.dev) adding of: Zend_Log_Writer_SyslogTest Zend_Log_Writer_ZendMonitorTest
Posted by Matthew Weier O'Phinney (matthew) on 2010-06-21T04:27:44.000+0000
Unfortunately, there are issues in writing tests for both of these log writers. In each case, the only meaningful tests we could write are integration tests, not unit tests, as there is no real way to stub out the functionality. Integration tests for syslog would require that they be run only by a privileged user (since the system logs are generally readable only by root on *nix machines, and often only by Administrators on Windows machines) -- and this has security implications.
As for a ZendMonitor test suite, there is no API for retrieving the messages once logged.
Posted by Ramon Henrique Ornelas (ramon) on 2010-07-06T19:12:11.000+0000
Fixed in trunk r22530.
Posted by Ramon Henrique Ornelas (ramon) on 2010-07-06T19:33:46.000+0000
Applied in branch release-1.10 r22532.
Have you found an issue?
See the Overview section for more details.