コード例 #1
0
 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);
 }
コード例 #2
0
 public function testOptionEnabled()
 {
     $this->debugDispatcher->expects($this->never())->method('dispatchDebug');
     $this->initLogger(array('enabled' => false))->addDebug('test');
 }