30 private $licenseId = 321;
31 private $refStart = 2;
33 private $infoText =
"<infoText>";
45 protected function setUp()
47 $this->htmlElement = M::mock(
'Fossology\Lib\Html\HtmlElement');
49 $this->highlight =
new Highlight($this->
start, $this->end, $this->type, $this->refStart, $this->refEnd, $this->infoText, $this->htmlElement);
50 $this->highlight->setLicenseId($this->licenseId);
53 protected function tearDown()
58 public function testGetStart()
60 assertThat($this->highlight->getStart(), is($this->
start));
63 public function testGetEnd()
65 assertThat($this->highlight->getEnd(), is($this->end));
68 public function testGetType()
70 assertThat($this->highlight->getType(), is($this->type));
73 public function testGetLicenseId()
75 assertThat($this->highlight->getLicenseId(), is($this->licenseId));
78 public function testGetRefStart()
80 assertThat($this->highlight->getRefStart(), is($this->refStart));
83 public function testGetRefEnd()
85 assertThat($this->highlight->getRefEnd(), is($this->refEnd));
88 public function testSetInfoText()
90 assertThat($this->highlight->getInfoText(), is($this->infoText));
93 public function testGetInfoText()
95 assertThat($this->highlight->getInfoText(), is($this->infoText));
98 public function testGetHtmlElement()
100 assertThat($this->highlight->getHtmlElement(), is($this->htmlElement));
start($application)
start the application Assumes application is restartable via /etc/init.d/<script>. The application passed in should match the script name in /etc/init.d