9 namespace Fossology\Lib\Data;
19 private $licenseId = 321;
20 private $refStart = 2;
22 private $infoText =
"<infoText>";
34 protected function setUp() :
void
36 $this->htmlElement = M::mock(
'Fossology\Lib\Html\HtmlElement');
38 $this->highlight =
new Highlight($this->
start, $this->end, $this->type, $this->refStart, $this->refEnd, $this->infoText, $this->htmlElement);
39 $this->highlight->setLicenseId($this->licenseId);
42 protected function tearDown() :
void
47 public function testGetStart()
49 assertThat($this->highlight->getStart(), is($this->
start));
52 public function testGetEnd()
54 assertThat($this->highlight->getEnd(), is($this->end));
57 public function testGetType()
59 assertThat($this->highlight->getType(), is($this->type));
62 public function testGetLicenseId()
64 assertThat($this->highlight->getLicenseId(), is($this->licenseId));
67 public function testGetRefStart()
69 assertThat($this->highlight->getRefStart(), is($this->refStart));
72 public function testGetRefEnd()
74 assertThat($this->highlight->getRefEnd(), is($this->refEnd));
77 public function testSetInfoText()
79 assertThat($this->highlight->getInfoText(), is($this->infoText));
82 public function testGetInfoText()
84 assertThat($this->highlight->getInfoText(), is($this->infoText));
87 public function testGetHtmlElement()
89 assertThat($this->highlight->getHtmlElement(), is($this->htmlElement));
start($application)
start the application Assumes application is restartable via /etc/init.d/<script>....