FOSSology  4.4.0
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 25 of file cliParamsTest4UnunpackException.php.

Member Function Documentation

◆ setUp()

cliParamsTest4UnunpackExcption::setUp ( )

Setup test repo and db.

See also
PHPUnit_Framework_TestCase::setUp()

Definition at line 45 of file cliParamsTest4UnunpackException.php.

◆ tearDown()

cliParamsTest4UnunpackExcption::tearDown ( )

Teardown test repo and db.

See also
PHPUnit_Framework_TestCase::tearDown()

Definition at line 65 of file cliParamsTest4UnunpackException.php.

◆ testNullFile()

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 101 of file cliParamsTest4UnunpackException.php.

◆ testValidParam()

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 80 of file cliParamsTest4UnunpackException.php.

Member Data Documentation

◆ $agentDir

string cliParamsTest4UnunpackExcption::$agentDir
private

Location of agent directory

Definition at line 30 of file cliParamsTest4UnunpackException.php.

◆ $testDb

TestPgDb cliParamsTest4UnunpackExcption::$testDb
private

Test db

Definition at line 35 of file cliParamsTest4UnunpackException.php.

◆ $testInstaller

TestInstaller cliParamsTest4UnunpackExcption::$testInstaller
private

TestInstaller object

Definition at line 39 of file cliParamsTest4UnunpackException.php.


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