16 protected function newAgent()
21 ->getMockBuilder(Setup\Agent::class)
22 ->setMethods([
"hasConfig",
"getDefaultConfig",
"getConfigInput",
"getArrayToConfigTransformation",
"getInstallObjective",
"getUpdateObjective",
"getBuildArtifactObjective"])
23 ->setMockClassName(
"Mock_AgentNo" . ($no++))
29 protected function newObjective()
34 ->getMockBuilder(Setup\Objective::class)
35 ->setMethods([
"getHash",
"getLabel",
"isNotable",
"withResourcesFrom",
"getPreconditions",
"achieve"])
36 ->setMockClassName(
"Mock_ObjectiveNo" . ($no++))
41 ->willReturn(
"" . $no);
46 protected function newInput()
51 ->getMockBuilder(Input::class)
53 ->setMockClassName(
"Mock_InputNo" . ($no++))
59 protected function newConfig()
64 ->getMockBuilder(Setup\Config::class)
66 ->setMockClassName(
"Mock_ConfigNo" . ($no++))