-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract method to get TCPDF producer #572
Extract method to get TCPDF producer #572
Conversation
Wraps TCPDF_STATIC::getTCPDFProducer() calls with a private method and adds an empty private property that can be used to change the producer line. The private property can be changed with the reflection API. Both method and property are declared as private to avoid BC breaks. The idea is to help with testing PDF generation, by using a predictable producer line. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #572 +/- ##
==========================================
- Coverage 69.33% 69.32% -0.01%
==========================================
Files 128 128
Lines 27022 27027 +5
==========================================
+ Hits 18735 18737 +2
- Misses 8287 8290 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@nicolaasuni could you review this one please ? |
The producer line is intentionally hardcoded. |
Wraps
TCPDF_STATIC::getTCPDFProducer()
calls with a private method and adds an empty private property that can be used to change the producer line. The private property can be changed with the reflection API.Both method and property are declared as private to avoid BC breaks.
The idea is to help with testing PDF generation, by using a predictable producer line.