Development
Testing
How to run unit and integration tests for the SDK.
Unit tests
Run the unit test suite with:
composer test
This command uses PHPUnit with the configuration defined in phpunit.xml.dist.
Code coverage
To generate a code coverage report, install either PCOV or Xdebug and run:
composer test:coverage
This produces a text summary in the console and an HTML report in build/coverage/.
If you see errors such as Unable to load dynamic library 'pcov.so', either install the extension or disable it in your php.ini.
Integration tests
Integration tests exercise real calls against the EFL Leasing Online sandbox API. They require environment variables:
EFL_API_KEYEFL_PARTNER_ID
Run them with:
EFL_API_KEY=your-sandbox-api-key \
EFL_PARTNER_ID=your-partner-id \
composer test:integration
Without these variables, integration tests are skipped.