Kalpa-Services / mmg-wp-plugin

WooCommerce Gateway that uses the MMG Checkout API to process payments
https://mmg-plugin.kalpa.dev
GNU General Public License v2.0
4 stars 2 forks source link

unit test no longer depends on wordpress #46

Closed carlHandy closed 3 months ago

github-actions[bot] commented 3 months ago

PHP CodeSniffer Summary

......W.. 9 / 9 (100%)

FILE: ...r/work/mmg-wp-plugin/mmg-wp-plugin/includes/class-mmg-checkout-payment.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
 252 | WARNING | base64_encode() can be used to obfuscate code which is
     |         | strongly discouraged. Please verify that the function is used

PHP CodeSniffer Results

Click to expand full report ``` ......W.. 9 / 9 (100%) FILE: ...r/work/mmg-wp-plugin/mmg-wp-plugin/includes/class-mmg-checkout-payment.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 4 LINES -------------------------------------------------------------------------------- 252 | WARNING | base64_encode() can be used to obfuscate code which is | | strongly discouraged. Please verify that the function is used | | for benign reasons. 350 | WARNING | base64_decode() can be used to obfuscate code which is | | strongly discouraged. Please verify that the function is used | | for benign reasons. 384 | WARNING | Processing form data without nonce verification. 384 | WARNING | Processing form data without nonce verification. 424 | WARNING | Processing form data without nonce verification. 424 | WARNING | Processing form data without nonce verification. -------------------------------------------------------------------------------- Time: 1.18 secs; Memory: 20MB ```
github-actions[bot] commented 3 months ago

PHP CodeSniffer Summary

......W.. 9 / 9 (100%)

FILE: ...r/work/mmg-wp-plugin/mmg-wp-plugin/includes/class-mmg-checkout-payment.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
 252 | WARNING | base64_encode() can be used to obfuscate code which is
     |         | strongly discouraged. Please verify that the function is used

PHP CodeSniffer Results

Click to expand full report ``` ......W.. 9 / 9 (100%) FILE: ...r/work/mmg-wp-plugin/mmg-wp-plugin/includes/class-mmg-checkout-payment.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 4 LINES -------------------------------------------------------------------------------- 252 | WARNING | base64_encode() can be used to obfuscate code which is | | strongly discouraged. Please verify that the function is used | | for benign reasons. 350 | WARNING | base64_decode() can be used to obfuscate code which is | | strongly discouraged. Please verify that the function is used | | for benign reasons. 384 | WARNING | Processing form data without nonce verification. 384 | WARNING | Processing form data without nonce verification. 424 | WARNING | Processing form data without nonce verification. 424 | WARNING | Processing form data without nonce verification. -------------------------------------------------------------------------------- Time: 1.26 secs; Memory: 20MB ```
github-actions[bot] commented 3 months ago

PHPUnit Test Summary

PHPUnit 9.6.20 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.4.33
Configuration: /home/runner/work/mmg-wp-plugin/mmg-wp-plugin/phpunit.xml

MMGCheckout Payment (MMG_Checkout_Payment\MMGCheckoutPayment)
 ✔ Generate checkout url  5 ms

Time: 00:00.006, Memory: 6.00 MB

PHPUnit Test Results

Click to expand full report ``` PHPUnit 9.6.20 by Sebastian Bergmann and contributors. Runtime: PHP 7.4.33 Configuration: /home/runner/work/mmg-wp-plugin/mmg-wp-plugin/phpunit.xml MMGCheckout Payment (MMG_Checkout_Payment\MMGCheckoutPayment) ✔ Generate checkout url  5 ms Time: 00:00.006, Memory: 6.00 MB OK (1 test, 5 assertions) ```
github-actions[bot] commented 3 months ago

PHP CodeSniffer Summary

......W.. 9 / 9 (100%)

FILE: ...r/work/mmg-wp-plugin/mmg-wp-plugin/includes/class-mmg-checkout-payment.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
 252 | WARNING | base64_encode() can be used to obfuscate code which is
     |         | strongly discouraged. Please verify that the function is used

PHP CodeSniffer Results

Click to expand full report ``` ......W.. 9 / 9 (100%) FILE: ...r/work/mmg-wp-plugin/mmg-wp-plugin/includes/class-mmg-checkout-payment.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 4 LINES -------------------------------------------------------------------------------- 252 | WARNING | base64_encode() can be used to obfuscate code which is | | strongly discouraged. Please verify that the function is used | | for benign reasons. 350 | WARNING | base64_decode() can be used to obfuscate code which is | | strongly discouraged. Please verify that the function is used | | for benign reasons. 384 | WARNING | Processing form data without nonce verification. 384 | WARNING | Processing form data without nonce verification. 424 | WARNING | Processing form data without nonce verification. 424 | WARNING | Processing form data without nonce verification. -------------------------------------------------------------------------------- Time: 1.25 secs; Memory: 20MB ```