![]()  | 
  
    FOSSology
    3.2.0rc1
    
   Open Source License Compliance by Open Source Software 
   | 
 
Unit tests for SPDX2. More...


Public Member Functions | |
| testPreWorkOnArgsFlpZero () | |
| Test preWorkOnArgsFlp() with empty array.  More... | |
| testPreWorkOnArgsFlpId () | |
| Test preWorkOnArgsFlp() with args containing only key1.  More... | |
| testPreWorkOnArgsFlpRealWork () | |
| Test preWorkOnArgsFlp() with actual format.  More... | |
| testAddPrefixOnDemandNoChecker () | |
| Test addPrefixOnDemand() with no check.  More... | |
| provideLicenseSetAddPrefixOnDemand () | |
| Prefix provider for licenses.  More... | |
| testAddPrefixOnDemand ($licenseId, $checker, $expected) | |
| Test addPrefixOnDemand()  provideLicenseSetAddPrefixOnDemand.  More... | |
| provideLicenseSetAddPrefixOnDemandList () | |
| Prefix provider for license list.  More... | |
| testAddPrefixOnDemandList ($licenseIds, $checker, $expected) | |
| Test for addPrefixOnDemandList()  provideLicenseSetAddPrefixOnDemandList.  More... | |
| provideLicenseSetImplodeLicenses () | |
| Prefix provider for license implode.  More... | |
| testImplodeLicenses ($lics, $prefix, $expected) | |
| Test implodeLicenses()  provideLicenseSetImplodeLicenses.  More... | |
Protected Member Functions | |
| setUp () | |
| Setup test env.  More... | |
| tearDown () | |
| Tear down test env.  More... | |
Private Attributes | |
| $assertCountBefore | |
| Assertion count.  | |
Unit tests for SPDX2.
Definition at line 33 of file spdx2utilTest.php.
| Fossology\SpdxTwo\spdx2Test::provideLicenseSetAddPrefixOnDemand | ( | ) | 
| Fossology\SpdxTwo\spdx2Test::provideLicenseSetAddPrefixOnDemandList | ( | ) | 
Prefix provider for license list.
Definition at line 147 of file spdx2utilTest.php.
| Fossology\SpdxTwo\spdx2Test::provideLicenseSetImplodeLicenses | ( | ) | 
Prefix provider for license implode.
Definition at line 196 of file spdx2utilTest.php.
      
  | 
  protected | 
Setup test env.
Definition at line 41 of file spdx2utilTest.php.
      
  | 
  protected | 
Tear down test env.
Definition at line 50 of file spdx2utilTest.php.
| Fossology\SpdxTwo\spdx2Test::testAddPrefixOnDemand | ( | $licenseId, | |
| $checker, | |||
| $expected | |||
| ) | 
Test addPrefixOnDemand() provideLicenseSetAddPrefixOnDemand.
| string | $licenseId | |
| callable | $checker | |
| string | $expected | 
Definition at line 138 of file spdx2utilTest.php.
| Fossology\SpdxTwo\spdx2Test::testAddPrefixOnDemandList | ( | $licenseIds, | |
| $checker, | |||
| $expected | |||
| ) | 
Test for addPrefixOnDemandList() provideLicenseSetAddPrefixOnDemandList.
| array | $licenseIds | |
| callable | $checker | |
| string | $expected | 
Definition at line 187 of file spdx2utilTest.php.
| Fossology\SpdxTwo\spdx2Test::testAddPrefixOnDemandNoChecker | ( | ) | 
Test addPrefixOnDemand() with no check.
Definition at line 102 of file spdx2utilTest.php.
| Fossology\SpdxTwo\spdx2Test::testImplodeLicenses | ( | $lics, | |
| $prefix, | |||
| $expected | |||
| ) | 
Test implodeLicenses() provideLicenseSetImplodeLicenses.
| array | $lics | |
| string | $prefix | |
| string | $expected | 
Definition at line 244 of file spdx2utilTest.php.
| Fossology\SpdxTwo\spdx2Test::testPreWorkOnArgsFlpId | ( | ) | 
Test preWorkOnArgsFlp() with args containing only key1.
Definition at line 75 of file spdx2utilTest.php.
| Fossology\SpdxTwo\spdx2Test::testPreWorkOnArgsFlpRealWork | ( | ) | 
Test preWorkOnArgsFlp() with actual format.
--key2= as a valueDefinition at line 88 of file spdx2utilTest.php.
| Fossology\SpdxTwo\spdx2Test::testPreWorkOnArgsFlpZero | ( | ) | 
Test preWorkOnArgsFlp() with empty array.
Definition at line 62 of file spdx2utilTest.php.