>>> Stage test was aborted due to an error, last 400 lines as follows: FILE: .../src/opnsense/mvc/app/models/OPNsense/Cron/Migrations/M1_0_3.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 36 | ERROR | Class name "M1_0_3" is not in PascalCase format ---------------------------------------------------------------------- FILE: .../src/opnsense/mvc/app/models/OPNsense/Cron/Migrations/M1_0_4.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 36 | ERROR | Class name "M1_0_4" is not in PascalCase format ---------------------------------------------------------------------- FILE: .../src/opnsense/mvc/app/models/OPNsense/Cron/Migrations/M1_0_2.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 36 | ERROR | Class name "M1_0_2" is not in PascalCase format ---------------------------------------------------------------------- FILE: .../src/opnsense/mvc/app/models/OPNsense/Cron/Migrations/M1_0_0.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 33 | ERROR | Class name "M1_0_0" is not in PascalCase format ---------------------------------------------------------------------- FILE: ...ense/mvc/app/models/OPNsense/CaptivePortal/Migrations/M1_0_0.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 35 | ERROR | Class name "M1_0_0" is not in PascalCase format ---------------------------------------------------------------------- FILE: ...ts/app/models/OPNsense/Base/Constraints/UniqueConstraintTest.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 100 | ERROR | Each class must be in a file by itself ---------------------------------------------------------------------- FILE: ...dels/OPNsense/Base/Constraints/ComparedToFieldConstraintTest.php ---------------------------------------------------------------------- FOUND 14 ERRORS AFFECTING 14 LINES ---------------------------------------------------------------------- 41 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_number_ranges_correctly_with_lt_and_no_error" | | is not in camel caps format 51 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_number_ranges_correctly_with_lt_and_error" | | is not in camel caps format 61 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_number_ranges_correctly_with_gt_and_no_error" | | is not in camel caps format 71 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_number_ranges_correctly_with_gt_and_error" | | is not in camel caps format 82 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_zero_number_ranges_correctly_with_lt_and_error" | | is not in camel caps format 91 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_zero_number_ranges_correctly_with_gt_and_error" | | is not in camel caps format 100 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_zero_number_ranges_correctly_with_lt_and_no_error" | | is not in camel caps format 109 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_zero_number_ranges_correctly_with_gt_and_no_error" | | is not in camel caps format 120 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_node_empty_values_correctly_with_gt_and_no_error" | | is not in camel caps format 129 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_other_node_empty_values_correctly_with_gt_and_no_error" | | is not in camel caps format 140 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_constraint_if_node_is_null_and_no_error" | | is not in camel caps format 149 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_constraint_if_other_is_null_and_no_error" | | is not in camel caps format 158 | ERROR | Method name | | "ComparedToFieldConstraintTest::test_if_it_validates_constraint_if_both_are_null_and_no_error" | | is not in camel caps format 175 | ERROR | Method name | | "ComparedToFieldConstraintTest::make_validator" is not | | in camel caps format ---------------------------------------------------------------------- FILE: ...vc/tests/app/models/OPNsense/Base/FieldTypes/OptionFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 39 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...ts/app/models/OPNsense/Base/FieldTypes/NetworkAliasFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 41 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...sts/app/models/OPNsense/Base/FieldTypes/CertificateFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 41 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...ests/app/models/OPNsense/Base/FieldTypes/AutoNumberFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 41 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...odels/OPNsense/Base/FieldTypes/AuthenticationServerFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 41 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...c/tests/app/models/OPNsense/Base/FieldTypes/BooleanFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 39 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: .../mvc/tests/app/models/OPNsense/Base/FieldTypes/PortFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 39 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: .../mvc/tests/app/models/OPNsense/Base/FieldTypes/TextFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 39 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: .../tests/app/models/OPNsense/Base/FieldTypes/HostnameFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 39 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...app/models/OPNsense/Base/FieldTypes/Field_Framework_TestCase.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 35 | ERROR | Class name "Field_Framework_TestCase" is not in | | PascalCase format ---------------------------------------------------------------------- FILE: ...tests/app/models/OPNsense/Base/FieldTypes/VirtualIPFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 41 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...c/tests/app/models/OPNsense/Base/FieldTypes/CountryFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 39 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...tests/app/models/OPNsense/Base/FieldTypes/InterfaceFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 41 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: .../tests/app/models/OPNsense/Base/FieldTypes/ProtocolFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 39 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...c/tests/app/models/OPNsense/Base/FieldTypes/IntegerFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 39 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...s/app/models/OPNsense/Base/FieldTypes/ModelRelationFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 40 | | and the first side effect is on line 32. ---------------------------------------------------------------------- FILE: ...vc/tests/app/models/OPNsense/Base/FieldTypes/Base64FieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 39 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...vc/tests/app/models/OPNsense/Base/FieldTypes/IPPortFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 39 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...tests/app/models/OPNsense/Base/FieldTypes/AuthGroupFieldTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 41 | | and the first side effect is on line 34. ---------------------------------------------------------------------- FILE: ...c/tests/app/models/OPNsense/Base/BaseModel/Migrations/M1_0_0.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 35 | ERROR | Class name "M1_0_0" is not in PascalCase format ---------------------------------------------------------------------- FILE: ...c/tests/app/models/OPNsense/Base/BaseModel/Migrations/M0_0_1.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 35 | ERROR | Class name "M0_0_1" is not in PascalCase format ---------------------------------------------------------------------- FILE: ...c/tests/app/models/OPNsense/Base/BaseModel/Migrations/M1_0_1.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 35 | ERROR | Class name "M1_0_1" is not in PascalCase format ---------------------------------------------------------------------- FILE: ...rc/opnsense/mvc/tests/app/models/OPNsense/Base/BaseModelTest.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | A file should declare new symbols (classes, functions, | | constants, etc.) and cause no other side effects, or | | it should execute logic with side effects, but should | | not do both. The first symbol is defined on line 35 | | and the first side effect is on line 33. ---------------------------------------------------------------------- FILE: /usr/core/src/opnsense/mvc/script/run_validations.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 59 | ERROR | Empty CATCH statement detected ---------------------------------------------------------------------- FILE: /usr/core/src/opnsense/mvc/script/run_migrations.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 76 | ERROR | Empty CATCH statement detected ---------------------------------------------------------------------- Time: 6.71 secs; Memory: 22MB PHPUnit 9.6.22 by Sebastian Bergmann and contributors. Runtime: PHP 8.2.27 Configuration: /usr/core/src/opnsense/mvc/tests/phpunit.xml ............................................................... 63 / 219 ( 28%) ............................................................... 126 / 219 ( 57%) ............................................................... 189 / 219 ( 86%) .............................. 219 / 219 (100%) Time: 00:10.753, Memory: 50.90 MB OK (219 tests, 456 assertions) error: pathspec '/usr/core/src/opnsense/mvc/tests/app/models/OPNsense/ACL/AclConfig/config.xml' did not match any file(s) known to git *** Error code 1 Stop. make[2]: stopped in /usr/core *** Error code 1 Stop. make[1]: stopped in /usr/tools 75.15 real 57.90 user 24.27 sys