setLogger() public method

public setLogger ( Psr\Log\LoggerInterface $logger )
$logger Psr\Log\LoggerInterface
Esempio n. 1
0
 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());
 }