protected function setUp() { $this->licenseRef = M::mock(LicenseRef::classname()); $this->agentRef = M::mock(AgentRef::classname()); $this->agentClearingEvent = new AgentClearingEvent($this->licenseRef, $this->agentRef, $this->matchId, $this->percentage); }
/** * @return array */ protected function createScannerDetectedLicenses($licenseId = 13, $licenseShortname = "licA", $licenseFullName = "License-A") { $licenseRef = new LicenseRef($licenseId, $licenseShortname, $licenseFullName); $agentRef = M::mock(AgentRef::classname()); $scannerEvents = array($licenseId => array(new AgentClearingEvent($licenseRef, $agentRef, self::MATCH_ID, self::PERCENTAGE))); return array($scannerEvents, $licenseRef, $agentRef); }