![]() |
FOSSology
4.5.1
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
testConstructor () | |
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 38 of file ScanCodeTest.php.
Fossology\UI\Api\Test\Models\ScanCodeTest::testConstructor | ( | ) |
Tests that the ScanCode constructor initializes an instance correctly.
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 58 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 85 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 99 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 71 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 113 of file ScanCodeTest.php.