Exemple #1
0
 /**
  * buildLicenser.
  *
  * @param Config        $config
  * @param ProcessLogger $logger
  *
  * @return Licenser
  */
 protected function buildLicenser(Config $config, ProcessLogger $logger)
 {
     return Licenser::create($config, $logger);
 }
Exemple #2
0
 public function testSetGetLogger()
 {
     $licenser = Licenser::create($this->config, $this->logger);
     self::assertEquals($licenser->getLogger(), $this->logger);
     $newLogger = new ProcessLogger(new DummyOutput());
     $licenser->setLogger($newLogger);
     self::assertEquals($licenser->getLogger(), $newLogger);
 }