public function setUp() { parent::setUp(); $this->new_relic = $this->getMockBuilder(NewRelic::class)->disableOriginalConstructor()->getMock(); $this->site->method('getNewRelic')->willReturn($this->new_relic); }
/** * @inheritdoc */ public function setUp() { parent::setUp(); $this->command = new EnableCommand(); $this->command->setSites($this->sites); $this->command->setLogger($this->logger); }