1*5586e97bSAndreas Gohr<?php 2*5586e97bSAndreas Gohr 3*5586e97bSAndreas Gohrnamespace dokuwiki\plugin\dev\test; 4*5586e97bSAndreas Gohr 5*5586e97bSAndreas Gohruse splitbrain\phpcli\CLI; 6*5586e97bSAndreas Gohruse splitbrain\phpcli\Options; 7*5586e97bSAndreas Gohr 8*5586e97bSAndreas Gohr/** 9*5586e97bSAndreas Gohr * Does nothing 10*5586e97bSAndreas Gohr */ 11*5586e97bSAndreas Gohrclass NullLogger extends CLI 12*5586e97bSAndreas Gohr{ 13*5586e97bSAndreas Gohr /** @inheritdoc */ 14*5586e97bSAndreas Gohr public function __construct($autocatch = true) 15*5586e97bSAndreas Gohr { 16*5586e97bSAndreas Gohr parent::__construct(false); 17*5586e97bSAndreas Gohr } 18*5586e97bSAndreas Gohr 19*5586e97bSAndreas Gohr /** @inheritdoc */ 20*5586e97bSAndreas Gohr protected function setup(Options $options) 21*5586e97bSAndreas Gohr { 22*5586e97bSAndreas Gohr } 23*5586e97bSAndreas Gohr 24*5586e97bSAndreas Gohr /** @inheritdoc */ 25*5586e97bSAndreas Gohr protected function main(Options $options) 26*5586e97bSAndreas Gohr { 27*5586e97bSAndreas Gohr } 28*5586e97bSAndreas Gohr 29*5586e97bSAndreas Gohr /** @inheritdoc */ 30*5586e97bSAndreas Gohr public function log($level, $message, array $context = array()) 31*5586e97bSAndreas Gohr { 32*5586e97bSAndreas Gohr return ''; 33*5586e97bSAndreas Gohr } 34*5586e97bSAndreas Gohr 35*5586e97bSAndreas Gohr} 36