FOSSology  4.4.0
Open Source License Compliance by Open Source Software
LicenseTest.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2014 Siemens AG
4  Authors: Johannes Najjar, Andreas Würl
5 
6  SPDX-License-Identifier: GPL-2.0-only
7 */
8 
9 namespace Fossology\Lib\Data;
10 
11 class LicenseTest extends \PHPUnit\Framework\TestCase
12 {
14  private $text;
16  private $url;
18  private $license;
19 
20  protected function setUp() : void
21  {
22  $this->text = "The License text";
23  $this->url = "http://www.fossology.org";
24 
25  $this->license = new License(8, "testSN", "testFN", 4, $this->text, $this->url, 1);
26  }
27 
28  public function testText()
29  {
30  assertThat($this->license->getText(), is($this->text));
31  }
32 
33  public function testUrl()
34  {
35  assertThat($this->license->getUrl(), is($this->url));
36  }
37 }
Definition: nomos.h:426