Esempio n. 1
0
 public function setUp()
 {
     $writer = new \Zend\Log\Writer\Mock();
     $this->logger = new Logger();
     $this->logger->addWriter($writer);
     $authenticationService = \Mockery::mock('Zend\\Authentication\\AuthenticationService');
     $this->logger->setAuthenticationService($authenticationService);
 }
Esempio n. 2
0
 /**
  * @return Logger
  */
 private function execute()
 {
     if ($this->logger->getWriters()->count() == 0) {
         return $this->logger->addWriter(new \Zend\Log\Writer\Null());
     }
 }