>>> Stage test was aborted due to an error, last 400 lines as follows: ---------------------------------------------------------------------- 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: ...c/tests/app/models/OPNsense/Base/FieldTypes/NetworkFieldTest.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 37 | | and the first side effect is on line 32. ---------------------------------------------------------------------- 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: ...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: ...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: .../core/src/opnsense/mvc/tests/app/models/OPNsense/ACL/AclTest.php ---------------------------------------------------------------------- FOUND 9 ERRORS AFFECTING 9 LINES ---------------------------------------------------------------------- 55 | ERROR | Method name "AclTest::test_root_hasPrivilege_not" is | | not in camel caps format 63 | ERROR | Method name "AclTest::test_test1_hasPrivilege" is not | | in camel caps format 71 | ERROR | Method name | | "AclTest::test_test2_hasPrivilege_via_group" is not in | | camel caps format 79 | ERROR | Method name "AclTest::test_test3_hasPrivilege_not" is | | not in camel caps format 87 | ERROR | Method name | | "AclTest::test_root_isPageAccessible_known" is not in | | camel caps format 95 | ERROR | Method name | | "AclTest::test_root_isPageAccessible_unknown" is not | | in camel caps format 103 | ERROR | Method name "AclTest::test_test2_isPageAccessible" is | | not in camel caps format 111 | ERROR | Method name | | "AclTest::test_test4_isPageAccessible_via_group" is | | not in camel caps format 119 | ERROR | Method name | | "AclTest::test_test1_isPageAccessible_unknown" is not | | in camel caps format ---------------------------------------------------------------------- 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: 7.07 secs; Memory: 22MB PHPUnit 9.6.22 by Sebastian Bergmann and contributors. Runtime: PHP 8.3.19 Configuration: /usr/core/src/opnsense/mvc/tests/phpunit.xml ............................................................... 63 / 239 ( 26%) ............................................................... 126 / 239 ( 52%) ............................................................... 189 / 239 ( 79%) .................................................. 239 / 239 (100%) Time: 00:00.091, Memory: 44.89 MB OK (239 tests, 485 assertions) error: unable to create file src/opnsense/mvc/tests/app/models/OPNsense/ACL/AclConfig/config.xml: File exists Updated 0 paths from the index *** Error code 255 Stop. make[2]: stopped in /usr/core *** Error code 1 Stop. make[1]: stopped in /usr/tools 64.57 real 61.70 user 18.69 sys