FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
cliParamsTest4UnunpackExcption Class Reference

Test the ununpack agent cli parameters. (Exceptions) More...

Inheritance diagram for cliParamsTest4UnunpackExcption:
Inheritance graph
Collaboration diagram for cliParamsTest4UnunpackExcption:
Collaboration graph

Public Member Functions

 setUp ()
 Setup test repo and db. More...
 
 tearDown ()
 Teardown test repo and db. More...
 
 testValidParam ()
 Pass an invalid flag to agent which should not run. More...
 
 testNullFile ()
 Passing null file to agent. More...
 

Private Attributes

 $agentDir
 
 $testDb
 
 $testInstaller
 

Detailed Description

Test the ununpack agent cli parameters. (Exceptions)

Definition at line 36 of file cliParamsTest4UnunpackException.php.

Member Function Documentation

cliParamsTest4UnunpackExcption::setUp ( )

Setup test repo and db.

See also
PHPUnit_Framework_TestCase::setUp()

Definition at line 56 of file cliParamsTest4UnunpackException.php.

cliParamsTest4UnunpackExcption::tearDown ( )

Teardown test repo and db.

See also
PHPUnit_Framework_TestCase::tearDown()

Definition at line 76 of file cliParamsTest4UnunpackException.php.

cliParamsTest4UnunpackExcption::testNullFile ( )

Passing null file to agent.

Test:
  1. Pass a null file to the agent (0 size)
  2. Check if agent did not try to extract the file

Definition at line 112 of file cliParamsTest4UnunpackException.php.

cliParamsTest4UnunpackExcption::testValidParam ( )

Pass an invalid flag to agent which should not run.

Test:
  1. Call the ununpack agent CLI with an invalid flag
  2. Check if agent did not return OK
  3. Check if agent did not extract the package

Definition at line 91 of file cliParamsTest4UnunpackException.php.

Member Data Documentation

string cliParamsTest4UnunpackExcption::$agentDir
private

Location of agent directory

Definition at line 41 of file cliParamsTest4UnunpackException.php.

TestPgDb cliParamsTest4UnunpackExcption::$testDb
private

Test db

Definition at line 46 of file cliParamsTest4UnunpackException.php.

TestInstaller cliParamsTest4UnunpackExcption::$testInstaller
private

TestInstaller object

Definition at line 50 of file cliParamsTest4UnunpackException.php.


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