FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
testDataFormat () | |
testSetAndGetLicense () | |
testSetAndGetCopyright () | |
testSetAndGetEmail () | |
testSetAndGetUrl () | |
Private Member Functions | |
getScanCodeInfo () | |
Definition at line 16 of file ScanCodeTest.php.
|
private |
Provides test data and an instance of the ScanCode class.
expectedArray
: The expected array structure.obj
: The instance of ScanCode being tested. Definition at line 25 of file ScanCodeTest.php.
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.
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.
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.
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.
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.