FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\DeciderJob\Test\SchedulerTestRunnerCli Class Reference

Mock for cli inputs. More...

Inheritance diagram for Fossology\DeciderJob\Test\SchedulerTestRunnerCli:
Inheritance graph
Collaboration diagram for Fossology\DeciderJob\Test\SchedulerTestRunnerCli:
Collaboration graph

Public Member Functions

 __construct (TestPgDb $testDb)
 
 run ($uploadId, $userId=2, $groupId=2, $jobId=1, $args="")
 Mock as agent was called from CLI. More...
 

Private Attributes

 $testDb
 

Detailed Description

Mock for cli inputs.

Todo:
move to lib/test

Definition at line 20 of file SchedulerTestRunnerCli.php.

Member Function Documentation

◆ run()

Fossology\DeciderJob\Test\SchedulerTestRunnerCli::run (   $uploadId,
  $userId = 2,
  $groupId = 2,
  $jobId = 1,
  $args = "" 
)

Mock as agent was called from CLI.

Parameters
int$uploadId
int$userId
int$groupId
int$jobId
string$args
Returns
array Run success code, agent output, agent return code

Implements Fossology\DeciderJob\Test\SchedulerTestRunner.

Definition at line 39 of file SchedulerTestRunnerCli.php.


The documentation for this class was generated from the following file: