FOSSology  4.4.0
Open Source License Compliance by Open Source Software
DecisionScopesTest.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2014 Siemens AG
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
8 namespace Fossology\Lib\Data;
9 
10 
12 
14 {
15 
16  protected function setUp() : void
17  {
18  $this->setTypes(new DecisionScopes());
19  }
20 
21  public function testTypeItem()
22  {
23  $this->checkMapping(DecisionScopes::ITEM, "local");
24  }
25 
26  public function testTypePackage()
27  {
28  $this->checkMapping(DecisionScopes::PACKAGE, "package");
29  }
30 
31  public function testTypeRepository()
32  {
33  $this->checkMapping(DecisionScopes::REPO, "global");
34  }
35 }
checkMapping($type, $expectedTypeName)