8 namespace Fossology\Lib\Data;
12 private $agentId = 1243;
13 private $agentName =
"<agentName>";
14 private $agentRevision =
"<agentRevision";
18 protected function setUp() :
void
20 $this->agentRef =
new AgentRef($this->agentId, $this->agentName, $this->agentRevision);
23 public function testGetAgentId()
25 assertThat($this->agentRef->getAgentId(), is($this->agentId));
28 public function testGetAgentName()
30 assertThat($this->agentRef->getAgentName(), is($this->agentName));
33 public function testGetAgentRevision()
35 assertThat($this->agentRef->getAgentRevision(), is($this->agentRevision));
38 public function testToString()
40 assertThat(strval($this->agentRef), is(
"AgentRef(1243, <agentName>, <agentRevision)"));