FOSSology  3.2.0rc1
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
 

Protected Attributes

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

Private Attributes

 $db_conf
 

Detailed Description

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

Definition at line 35 of file ft_cliPkgagentTest.php.

Member Function Documentation

ft_cliPkgagentTest::setUp ( )

Set up test environment.

See also
PHPUnit_Framework_TestCase::setUp()

Definition at line 46 of file ft_cliPkgagentTest.php.

ft_cliPkgagentTest::testHelp ( )

Test help message.

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

Definition at line 84 of file ft_cliPkgagentTest.php.

ft_cliPkgagentTest::testI ( )

Test DB init flag.

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

Definition at line 104 of file ft_cliPkgagentTest.php.

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 127 of file ft_cliPkgagentTest.php.

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 162 of file ft_cliPkgagentTest.php.


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