Пример #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);
 }
Пример #2
0
 /**
  * @return Logger
  */
 private function execute()
 {
     if ($this->logger->getWriters()->count() == 0) {
         return $this->logger->addWriter(new \Zend\Log\Writer\Null());
     }
 }