FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Test\Models\ScanCodeTest Class Reference
Inheritance diagram for Fossology\UI\Api\Test\Models\ScanCodeTest:
Inheritance graph
Collaboration diagram for Fossology\UI\Api\Test\Models\ScanCodeTest:
Collaboration graph

Public Member Functions

 testDataFormat ()
 
 testSetAndGetLicense ()
 
 testSetAndGetCopyright ()
 
 testSetAndGetEmail ()
 
 testSetAndGetUrl ()
 

Private Member Functions

 getScanCodeInfo ()
 

Detailed Description

Definition at line 16 of file ScanCodeTest.php.

Member Function Documentation

◆ getScanCodeInfo()

Fossology\UI\Api\Test\Models\ScanCodeTest::getScanCodeInfo ( )
private

Provides test data and an instance of the ScanCode class.

Returns
array An associative array containing:
  • expectedArray: The expected array structure.
  • obj: The instance of ScanCode being tested.

Definition at line 25 of file ScanCodeTest.php.

◆ testDataFormat()

Fossology\UI\Api\Test\Models\ScanCodeTest::testDataFormat ( )

Tests ScanCode::getArray() method.

This method validates that the getArray method returns the correct data structure.

Definition at line 45 of file ScanCodeTest.php.

◆ testSetAndGetCopyright()

Fossology\UI\Api\Test\Models\ScanCodeTest::testSetAndGetCopyright ( )

Tests ScanCode::setCopyright() and getCopyright() methods.

This method verifies that the setCopyright method correctly updates the copyright property, and that the getCopyright method returns the updated value.

Definition at line 72 of file ScanCodeTest.php.

◆ testSetAndGetEmail()

Fossology\UI\Api\Test\Models\ScanCodeTest::testSetAndGetEmail ( )

Tests ScanCode::setEmail() and getEmail() methods.

This method verifies that the setEmail method correctly updates the email property, and that the getEmail method returns the updated value.

Definition at line 86 of file ScanCodeTest.php.

◆ testSetAndGetLicense()

Fossology\UI\Api\Test\Models\ScanCodeTest::testSetAndGetLicense ( )

Tests ScanCode::setLicense() and getLicense() methods.

This method verifies that the setLicense method correctly updates the license property, and that the getLicense method returns the updated value.

Definition at line 58 of file ScanCodeTest.php.

◆ testSetAndGetUrl()

Fossology\UI\Api\Test\Models\ScanCodeTest::testSetAndGetUrl ( )

Tests ScanCode::setUrl() and getUrl() methods.

This method verifies that the setUrl method correctly updates the url property, and that the getUrl method returns the updated value.

Definition at line 100 of file ScanCodeTest.php.


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