You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
502 B
28 lines
502 B
<?php |
|
|
|
namespace yiiunit\framework\log\mocks; |
|
|
|
use yii\log\Target; |
|
|
|
class TargetMock extends Target |
|
{ |
|
|
|
public $collectOverride; |
|
|
|
/** |
|
* @inheritDoc |
|
*/ |
|
public function export() |
|
{ |
|
|
|
} |
|
|
|
public function collect($messages, $final) |
|
{ |
|
if($this->collectOverride !== null) { |
|
call_user_func($this->collectOverride, $messages, $final); |
|
return; |
|
} |
|
parent::collect($messages, $final); // TODO: Change the autogenerated stub |
|
} |
|
}
|
|
|