removeLogger() public method

Remove logger
public removeLogger ( ) : Client
return Client
コード例 #1
0
ファイル: ClientTest.php プロジェクト: agolomazov/php-mongo
 public function testGetLogger()
 {
     $this->client->removeLogger();
     $this->assertFalse($this->client->hasLogger());
     $this->client->setLogger($this->getMock('\\Psr\\Log\\LoggerInterface'));
     $this->assertInstanceOf('\\Psr\\Log\\LoggerInterface', $this->client->getLogger());
 }