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:03.120, Memory: 16.00 MB
There were 2 failures:
1) Magento\Test\Php\LiveCodeTest::testCodeStyle
PHP Code Sniffer detected 1 violation(s):
FILE: /var/www/html/app/code/Magento/InventoryCatalogFrontendUi/Model/IsSalableQtyThresholdReached.php
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------
| WARNING | Copyright is missing or Copyright content/year is not valid
14 | WARNING | Comment block is missing
------------------------------------------------------------------------------------------------------
FILE: /var/www/html/app/code/Magento/InventoryCatalogFrontendUi/Model/GetProductQtyLeft.php
-------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------
20 | WARNING | Missing PHP DocBlock for class property.
22 | WARNING | Missing PHP DocBlock for class property.
24 | WARNING | Missing PHP DocBlock for class property.
41 | WARNING | Line exceeds 120 characters; contains 136 characters
-------------------------------------------------------------------------------------------
FILE: /var/www/html/app/code/Magento/InventoryCatalogFrontendUi/Model/IsSalableQtyAvailableForDisplaying.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
17 | WARNING | Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to
| | new implementation when code is deprecated and there is a new alternative.
------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/app/code/Magento/InventorySalesFrontendUi/Plugin/Block/Stockqty/AbstractStockqtyPlugin.php
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------------------------------------------
26 | WARNING | Missing PHP DocBlock for class property.
28 | WARNING | Missing PHP DocBlock for class property.
30 | WARNING | Missing PHP DocBlock for class property.
32 | WARNING | Missing PHP DocBlock for class property.
34 | WARNING | Missing PHP DocBlock for class property.
81 | WARNING | Line exceeds 120 characters; contains 122 characters
--------------------------------------------------------------------------------------------------------------
Failed asserting that 1 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/app/code/Magento/InventoryCatalogFrontendUi/Model/GetProductQtyLeft.php:33 UnusedFormalParameter Avoid unused parameters such as '$qtyLeftChecker'.
/var/www/html/app/code/Magento/InventorySalesFrontendUi/Plugin/Block/Stockqty/AbstractStockqtyPlugin.php:49 UnusedFormalParameter Avoid unused parameters such as '$qtyLeftChecker'.
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.