FOSSology  4.4.0
Open Source License Compliance by Open Source Software
ft_cliPkgagentTest Class Reference

Test cli parameter i and v and rpm file and no parameters. More...

Inheritance diagram for ft_cliPkgagentTest:
Inheritance graph
Collaboration diagram for ft_cliPkgagentTest:
Collaboration graph

Public Member Functions

 setUp ()
 Set up test environment. More...
 
 testHelp ()
 Test help message. More...
 
 testI ()
 Test DB init flag. More...
 
 testOneRPM ()
 Test CLI with single RPM. More...
 
 testOneRPMV ()
 Test CLI in verbose with one RPM. More...
 

Public Attributes

 $agentDir
 
 $pkgagent
 
 $cwd
 

Protected Member Functions

 tearDown ()
 

Protected Attributes

 $testfile = __DIR__.'/../testdata/fossology-1.2.0-1.el5.i386.rpm'
 

Private Attributes

 $testDb
 
 $testInstaller
 

Detailed Description

Test cli parameter i and v and rpm file and no parameters.

Definition at line 25 of file ft_cliPkgagentTest.php.

Member Function Documentation

◆ setUp()

ft_cliPkgagentTest::setUp ( )

Set up test environment.

See also
PHPUnit_Framework_TestCase::setUp()

Definition at line 40 of file ft_cliPkgagentTest.php.

◆ testHelp()

ft_cliPkgagentTest::testHelp ( )

Test help message.

Test:
  1. Call -h on pkgagent CLI
  2. Check if help message was printed properly

Definition at line 89 of file ft_cliPkgagentTest.php.

◆ testI()

ft_cliPkgagentTest::testI ( )

Test DB init flag.

Test:
  1. Call -i on pkgagent CLI
  2. Check if agent ran properly

Definition at line 109 of file ft_cliPkgagentTest.php.

◆ testOneRPM()

ft_cliPkgagentTest::testOneRPM ( )

Test CLI with single RPM.

Test:
  1. Call CLI with single RPM file path
  2. Check if agent parse the RPM file properly

Definition at line 132 of file ft_cliPkgagentTest.php.

◆ testOneRPMV()

ft_cliPkgagentTest::testOneRPMV ( )

Test CLI in verbose with one RPM.

Test:
  1. Pass one RPM to CLI with -vv flag
  2. Test if extra information is loaded

Definition at line 167 of file ft_cliPkgagentTest.php.


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