/** * buildLicenser. * * @param Config $config * @param ProcessLogger $logger * * @return Licenser */ protected function buildLicenser(Config $config, ProcessLogger $logger) { return Licenser::create($config, $logger); }
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); }