FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
LicenseRefTest.php
1 <?php
2 /*
3 Copyright (C) 2014, Siemens AG
4 Author: Andreas Würl
5 
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 version 2 as published by the Free Software Foundation.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19 
20 namespace Fossology\Lib\Data;
21 
22 class LicenseRefTest extends \PHPUnit\Framework\TestCase
23 {
24  private $id = 321;
25  private $shortName = "<shortName>";
26  private $fullName = "<fullName>";
27 
31  private $licenseRef;
32 
33  protected function setUp()
34  {
35  $this->licenseRef = new LicenseRef($this->id, $this->shortName, $this->fullName);
36  }
37 
38  public function testGetId()
39  {
40  assertThat($this->licenseRef->getId(), is($this->id));
41  }
42 
43  public function testGetShortName()
44  {
45  assertThat($this->licenseRef->getShortName(), is($this->shortName));
46  }
47 
48  public function testGetFullName()
49  {
50  assertThat($this->licenseRef->getFullName(), is($this->fullName));
51  }
52 }