public function testCallStaticDebug() { $this->debugDispatcher->expects($this->once())->method('dispatchDebug')->with($this->equalTo(123), $this->equalTo('db')); \PhpConsole\Helper::register($this->connector); /** @noinspection PhpUndefinedMethodInspection */ \PhpConsole\Helper::db(123); }
public function testOptionEnabled() { $this->debugDispatcher->expects($this->never())->method('dispatchDebug'); $this->initLogger(array('enabled' => false))->addDebug('test'); }