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

Test mimetype agent from cli. More...

Inheritance diagram for cliParamsTest4Mimetype:
Inheritance graph
Collaboration diagram for cliParamsTest4Mimetype:
Collaboration graph

Public Member Functions

 testMimetypeNotInDB ()
 Test mimetype name is not in table mimetype. More...
 
 testMimetypeInDB ()
 The mimetype name is in table mimetype. More...
 

Public Attributes

 $EXE_PATH = ""
 
 $cwd
 
 $DB_CONF = ""
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 clean the env
 

Private Attributes

 $testDb
 
 $dbManager
 
 $testInstaller
 

Detailed Description

Test mimetype agent from cli.

Definition at line 25 of file cliParamsTest4Mimetype.php.

Member Function Documentation

◆ setUp()

cliParamsTest4Mimetype::setUp ( )
protected

@biref Initialization

See also
PHPUnit_Framework_TestCase::setUp()

Definition at line 44 of file cliParamsTest4Mimetype.php.

◆ testMimetypeInDB()

cliParamsTest4Mimetype::testMimetypeInDB ( )

The mimetype name is in table mimetype.

Test:
  1. Pass a file with known mimetype to the agent
  2. Check if agent return correct mimetype and id

Definition at line 135 of file cliParamsTest4Mimetype.php.

◆ testMimetypeNotInDB()

cliParamsTest4Mimetype::testMimetypeNotInDB ( )

Test mimetype name is not in table mimetype.

Test:
  1. Pass a file with mimetype not in database to the agent
  2. Check if agent identifies correct mimetype
  3. Pass a file with mimetype in database to the agent
  4. Check if agent identifies correct mimetype

Definition at line 101 of file cliParamsTest4Mimetype.php.


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