16 require_once(__DIR__ .
'/../../agent/spdxutils.php');
30 protected function setUp() : void
32 $this->assertCountBefore = \Hamcrest\MatcherAssert::getCount();
41 $this->addToAssertionCount(\Hamcrest\MatcherAssert::getCount()-$this->assertCountBefore);
66 $args = array(
"key1" =>
"value");
79 $args = array(
"key1" =>
"value --key2=anotherValue");
81 assertThat($result[
"key1"], equalTo(
"value"));
82 assertThat($result[
"key2"], equalTo(
"anotherValue"));
static preWorkOnArgsFlp($args, $key1, $key2)
For a given set of arguments assign $args[$key1] and $args[$key2].
static addPrefixOnDemand($license)
Add prefix to the license based on SPDX2 standards.
testPreWorkOnArgsFlpZero()
Test preWorkOnArgsFlp() with empty array.
tearDown()
Tear down test env.
testPreWorkOnArgsFlpRealWork()
Test preWorkOnArgsFlp() with actual format.
$assertCountBefore
Assertion count.
testAddPrefixOnDemandNoChecker()
Test addPrefixOnDemand() with no check.
testPreWorkOnArgsFlpId()
Test preWorkOnArgsFlp() with args containing only key1.
Namespace used by SPDX2 agent.