Could we use stadard PHPUnit mock? Like following:
<pre><code>$collectLogsCallback = array($this, 'collectLogsCallback');
$this->getMock('CLogRouter', array('collectLogs'))->expects($this->any())->method('collectLogs')->will($this->returnCallback());
</code></pre>