16 require_once(__DIR__ .
'/../../agent/spdx2utils.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.
$assertCountBefore
Assertion count.
testPreWorkOnArgsFlpId()
Test preWorkOnArgsFlp() with args containing only key1.
testPreWorkOnArgsFlpZero()
Test preWorkOnArgsFlp() with empty array.
testPreWorkOnArgsFlpRealWork()
Test preWorkOnArgsFlp() with actual format.
testAddPrefixOnDemandNoChecker()
Test addPrefixOnDemand() with no check.
tearDown()
Tear down test env.
Namespace used by SPDX2 agent.