FOSSology  4.5.1
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Test\Models\FileInfoTest Class Reference

Tests for FileInfo model. More...

Inheritance diagram for Fossology\UI\Api\Test\Models\FileInfoTest:
Inheritance graph
Collaboration diagram for Fossology\UI\Api\Test\Models\FileInfoTest:
Collaboration graph

Public Member Functions

 testConstructor ()
 
 testGetArrayV1 ()
 
 testGetArrayV2 ()
 
 testGetJsonV1 ()
 
 testGetJsonV2 ()
 

Protected Member Functions

 setUp ()
 Setup test data.
 

Private Attributes

 $viewInfo
 
 $metaInfo
 
 $packageInfo
 
 $tagInfo
 
 $reuseInfo
 

Detailed Description

Tests for FileInfo model.

Definition at line 22 of file FileInfoTest.php.

Member Function Documentation

◆ testConstructor()

Fossology\UI\Api\Test\Models\FileInfoTest::testConstructor ( )

Tests that the FilelInfo constructor initializes an instance correctly.

Returns
void

Definition at line 72 of file FileInfoTest.php.

◆ testGetArrayV1()

Fossology\UI\Api\Test\Models\FileInfoTest::testGetArrayV1 ( )
Test:
  1. Test the data format returned by FileInfo::getArray() for V1

Definition at line 91 of file FileInfoTest.php.

◆ testGetArrayV2()

Fossology\UI\Api\Test\Models\FileInfoTest::testGetArrayV2 ( )
Test:
  1. Test the data format returned by FileInfo::getArray() for V2

Definition at line 118 of file FileInfoTest.php.

◆ testGetJsonV1()

Fossology\UI\Api\Test\Models\FileInfoTest::testGetJsonV1 ( )
Test:
  1. Test JSON encoding through getJSON() method for V1

Definition at line 145 of file FileInfoTest.php.

◆ testGetJsonV2()

Fossology\UI\Api\Test\Models\FileInfoTest::testGetJsonV2 ( )
Test:
  1. Test JSON encoding through getJSON() method for V2

Definition at line 168 of file FileInfoTest.php.


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