>>> Stage test was aborted due to an error, last 400 lines as follows: ---------------------------------------------------------------------- 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: ...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. ---------------------------------------------------------------------- Time: 7.5 secs; Memory: 22MB PHPUnit 9.6.23 by Sebastian Bergmann and contributors. Runtime: PHP 8.3.23 Configuration: /usr/core/src/opnsense/mvc/tests/phpunit.xml ESSSSSSSSS..................................................... 63 / 249 ( 25%) ............................................................... 126 / 249 ( 50%) ................................E......F...F..FFFFFFF..EF...... 189 / 249 ( 75%) ............................................................ 249 / 249 (100%) Time: 00:00.088, Memory: 44.89 MB There were 3 errors: 1) tests\OPNsense\Base\AclTest::testCanBeCreated TypeError: flock(): Argument #1 ($stream) must be of type resource, false given /usr/core/src/opnsense/mvc/app/models/OPNsense/Core/ACL.php:478 /usr/core/src/opnsense/mvc/app/models/OPNsense/Core/ACL.php:234 /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/ACL/AclTest.php:48 2) tests\OPNsense\Base\FieldTypes\ModelRelationFieldTest::testSetSingleOk TypeError: flock(): Argument #1 ($stream) must be of type resource, false given /usr/core/src/opnsense/mvc/app/library/OPNsense/Core/FileObject.php:58 /usr/core/src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php:419 /usr/core/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/ModelRelationField.php:76 /usr/core/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/ModelRelationField.php:106 /usr/core/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/ModelRelationField.php:165 /usr/core/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php:215 /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/ModelRelationFieldTest.php:69 3) tests\OPNsense\Base\FieldTypes\NetworkAliasFieldTest::testDefaultsExists TypeError: flock(): Argument #1 ($stream) must be of type resource, false given /usr/core/src/opnsense/mvc/app/library/OPNsense/Core/FileObject.php:58 /usr/core/src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php:419 /usr/core/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/NetworkAliasField.php:87 /usr/core/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php:215 /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/NetworkAliasFieldTest.php:62 -- There were 10 failures: 1) tests\OPNsense\Base\FieldTypes\ModelRelationFieldTest::testSetNoneBlankDescSingleOk Failed asserting that an array is empty. /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/ModelRelationFieldTest.php:208 2) tests\OPNsense\Base\FieldTypes\ModelRelationFieldTest::testSetMultiOk Failed asserting that an array is empty. /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/ModelRelationFieldTest.php:289 3) tests\OPNsense\Base\FieldTypes\ModelRelationFieldTest::testSortedOk Failed asserting that 3 matches expected false. /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/ModelRelationFieldTest.php:349 4) tests\OPNsense\Base\FieldTypes\ModelRelationFieldTest::testSortedNoneOk Failed asserting that 4 matches expected false. /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/ModelRelationFieldTest.php:376 5) tests\OPNsense\Base\FieldTypes\ModelRelationFieldTest::testSortedNoneWithMultipleOk Failed asserting that 1 matches expected false. /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/ModelRelationFieldTest.php:403 6) tests\OPNsense\Base\FieldTypes\ModelRelationFieldTest::testSortedSelectAllOk Failed asserting that 1 matches expected false. /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/ModelRelationFieldTest.php:439 7) tests\OPNsense\Base\FieldTypes\ModelRelationFieldTest::testSortedSelectSomeOrderedOk Failed asserting that 1 matches expected false. /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/ModelRelationFieldTest.php:477 8) tests\OPNsense\Base\FieldTypes\ModelRelationFieldTest::testSortedSelectSomeUnorderedOk Failed asserting that 1 matches expected false. /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/ModelRelationFieldTest.php:515 9) tests\OPNsense\Base\FieldTypes\ModelRelationFieldTest::testSortedSelectSomeInvalidOk Failed asserting that 1 matches expected false. /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/ModelRelationFieldTest.php:554 10) tests\OPNsense\Base\FieldTypes\NetworkAliasFieldTest::testConfigItemsExists Failed asserting that an array is empty. /usr/core/src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/NetworkAliasFieldTest.php:82 -- There were 9 skipped tests: 1) tests\OPNsense\Base\AclTest::test_root_hasPrivilege_not This test depends on "tests\OPNsense\Base\AclTest::testCanBeCreated" to pass. 2) tests\OPNsense\Base\AclTest::test_test1_hasPrivilege This test depends on "tests\OPNsense\Base\AclTest::testCanBeCreated" to pass. 3) tests\OPNsense\Base\AclTest::test_test2_hasPrivilege_via_group This test depends on "tests\OPNsense\Base\AclTest::testCanBeCreated" to pass. 4) tests\OPNsense\Base\AclTest::test_test3_hasPrivilege_not This test depends on "tests\OPNsense\Base\AclTest::testCanBeCreated" to pass. 5) tests\OPNsense\Base\AclTest::test_root_isPageAccessible_known This test depends on "tests\OPNsense\Base\AclTest::testCanBeCreated" to pass. 6) tests\OPNsense\Base\AclTest::test_root_isPageAccessible_unknown This test depends on "tests\OPNsense\Base\AclTest::testCanBeCreated" to pass. 7) tests\OPNsense\Base\AclTest::test_test2_isPageAccessible This test depends on "tests\OPNsense\Base\AclTest::testCanBeCreated" to pass. 8) tests\OPNsense\Base\AclTest::test_test4_isPageAccessible_via_group This test depends on "tests\OPNsense\Base\AclTest::testCanBeCreated" to pass. 9) tests\OPNsense\Base\AclTest::test_test1_isPageAccessible_unknown This test depends on "tests\OPNsense\Base\AclTest::testCanBeCreated" to pass. ERRORS! Tests: 249, Assertions: 474, Errors: 3, Failures: 10, Skipped: 9. 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 57.44 real 54.45 user 20.63 sys