PHPUnit 10.5.45 by Sebastian Bergmann and contributors.
Runtime: PHP 8.4.1
Configuration: /var/www/html/dev/tests/static/phpunit.xml
FFS... 6 / 6 (100%)
Time: 00:16.040, Memory: 70.00 MB
There were 2 failures:
1) Magento\Test\Php\LiveCodeTest::testCodeStyle
PHP Code Sniffer detected 2 violation(s):
FILE: /var/www/html/dev/tests/integration/testsuite/Magento/Backend/Controller/Adminhtml/Cache/MassActionTest.php
-----------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
140 | ERROR | The use of function eval() is forbidden
140 | ERROR | Use of eval() is discouraged
-----------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/dev/tests/integration/testsuite/Magento/Catalog/Controller/ProductTest.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
----------------------------------------------------------------------------------------------
FILE: /var/www/html/dev/tests/integration/testsuite/Magento/Framework/Jwt/JwtManagerTest.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
| WARNING | [ ] Copyright is missing or Copyright content/year is not valid
151 | WARNING | [x] Function closing brace must go on the next line following the body; found 1 blank lines before
| | brace
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/dev/tests/integration/testsuite/Magento/MemoryUsageTest.php
-------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
13 | WARNING | Visibility must be declared on all constants if your project supports PHP 7.1 or later
-------------------------------------------------------------------------------------------------------
FILE: /var/www/html/dev/tests/static/testsuite/Magento/Test/Integrity/Magento/Framework/Cache/ConfigTest.php
------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Acl/Test/Unit/AclResource/Config/MergedXsdTest.php
-----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
-----------------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Acl/Test/Unit/AclResource/Config/XsdTest.php
-----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
-----------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Api/Test/Unit/ExtensionAttribute/Config/XsdTest.php
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
------------------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/App/Test/Unit/Config/Initial/ReaderTest.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
----------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/App/Test/Unit/Config/Initial/XsdTest.php
-------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
-------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/App/Test/Unit/Config/XsdTest.php
-----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
-----------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/App/Test/Unit/ResourceConnection/Config/XsdTest.php
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
------------------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Config/Test/Unit/DomTest.php
-------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
-------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Config/Test/Unit/Reader/FilesystemTest.php
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
---------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Data/Test/Unit/Argument/XsdTest.php
--------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
--------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Event/Test/Unit/Config/XsdTest.php
-------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
-------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Jwt/JwkFactory.php
-----------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
-----------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
753 | WARNING | Comment block is missing
764 | WARNING | Comment block is missing
784 | WARNING | Comment block is missing
819 | WARNING | Comment block is missing
848 | WARNING | Comment block is missing
886 | WARNING | Comment block is missing
-----------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Locale/Bundle/DataBundle.php
-------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
-------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
40 | WARNING | Missing short description
41 | WARNING | There must be exactly one blank line before tags
-------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/MessageQueue/Test/Unit/Consumer/Config/XsdTest.php
-----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
-----------------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/MessageQueue/Test/Unit/Publisher/XsdTest.php
-----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
-----------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/MessageQueue/Test/Unit/Topology/MergedXsdTest.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
----------------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/MessageQueue/Test/Unit/Topology/XsdTest.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
----------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Mview/Test/Unit/XsdTest.php
------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/ObjectManager/Test/Unit/Code/Generator/ProxyTest.php
-------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
-------------------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Stdlib/DateTime/DateTimeFormatter.php
----------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
----------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Stdlib/Test/Unit/DateTime/DateTimeFormatterTest.php
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
------------------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/TestFramework/Test/Unit/Unit/Utility/XsdValidatorTest.php
------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Validator/Test/Unit/ConfigTest.php
-------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
-------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/View/Test/Unit/Layout/XsdTest.php
------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
------------------------------------------------------------------------------------
FILE: /var/www/html/lib/internal/Magento/Framework/Xml/Test/Unit/ParserTest.php
-------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
-------------------------------------------------------------------------------
Failed asserting that 2 matches expected 0.
/var/www/html/dev/tests/static/testsuite/Magento/Test/Php/LiveCodeTest.php:257
2) Magento\Test\Php\LiveCodeTest::testCodeMess
PHP Code Mess has found error(s):
/var/www/html/dev/tests/integration/testsuite/Magento/Framework/Jwt/JwtManagerTest.php:39 CouplingBetweenObjects The class JwtManagerTest has a coupling between objects value of 37. Consider to reduce the number of dependencies under 13.
/var/www/html/dev/tests/integration/testsuite/Magento/Framework/Jwt/JwtManagerTest.php:64 CyclomaticComplexity The method testCreateRead() has a Cyclomatic Complexity of 21. The configured cyclomatic complexity threshold is 10.
/var/www/html/dev/tests/integration/testsuite/Magento/Framework/Jwt/JwtManagerTest.php:64 NPathComplexity The method testCreateRead() has an NPath complexity of 4788. The configured NPath complexity threshold is 200.
/var/www/html/dev/tests/integration/testsuite/Magento/Framework/Jwt/JwtManagerTest.php:153 ExcessiveMethodLength The method getTokenVariants() has 570 lines of code. Current threshold is set to 100. Avoid really long methods.
/var/www/html/dev/tests/integration/testsuite/Magento/Framework/Jwt/JwtManagerTest.php:764 ExcessiveMethodLength The method getJwtsForHeaders() has 190 lines of code. Current threshold is set to 100. Avoid really long methods.
/var/www/html/lib/internal/Magento/Framework/Jwt/JwkFactory.php:14 ExcessivePublicCount The class JwkFactory has 45 public methods and attributes. Consider reducing the number of public items to less than 45.
/var/www/html/lib/internal/Magento/Framework/Jwt/JwkFactory.php:28 CyclomaticComplexity The method createFromData() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
/var/www/html/lib/internal/Magento/Framework/Jwt/JwkFactory.php:28 NPathComplexity The method createFromData() has an NPath complexity of 512. The configured NPath complexity threshold is 200.
/var/www/html/lib/internal/Magento/Framework/Jwt/JwkFactory.php:939 UnusedPrivateMethod Avoid unused private methods such as 'base64Decode'.
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
PHPMD\TextUI\ExitCode Object (
- 'name' => 'Success'
- 'value' => 0
+ 'name' => 'Violation'
+ 'value' => 2
)
/var/www/html/dev/tests/static/testsuite/Magento/Test/Php/LiveCodeTest.php:294
FAILURES!
Tests: 6, Assertions: 5, Failures: 2, Skipped: 1.