Skip to content

Migrate phpunit metadata to attributes #191

Migrate phpunit metadata to attributes

Migrate phpunit metadata to attributes #191

Triggered via push April 30, 2024 21:15
Status Failure
Total duration 2m 50s
Artifacts

php.yml

on: push
Matrix: unit-tests-linux
Matrix: unit-tests-windows
Code coverage
0s
Code coverage
Cleanup artifacts
0s
Cleanup artifacts
Fit to window
Zoom out
Zoom in

Annotations

30 errors and 41 warnings
UndefinedMethod: src/Controller/MonitorController.php#L156
src/Controller/MonitorController.php:156:16: UndefinedMethod: Method Symfony\Component\HttpFoundation\JsonResponse::create does not exist (see https://psalm.dev/022)
PossiblyNullReference: src/TestCase/AuthSource/Ldap/Bind.php#L37
src/TestCase/AuthSource/Ldap/Bind.php:37:44: PossiblyNullReference: Cannot call method getString on possibly null value (see https://psalm.dev/083)
PossiblyNullReference: src/TestCase/AuthSource/Ldap/Bind.php#L38
src/TestCase/AuthSource/Ldap/Bind.php:38:44: PossiblyNullReference: Cannot call method getString on possibly null value (see https://psalm.dev/083)
UndefinedDocblockClass: src/TestCase/AuthSource/Ldap/Configuration.php#L20
src/TestCase/AuthSource/Ldap/Configuration.php:20:5: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\Module\ConnectorInterface does not exist (see https://psalm.dev/200)
UndefinedDocblockClass: src/TestCase/AuthSource/Ldap/Configuration.php#L20
src/TestCase/AuthSource/Ldap/Configuration.php:20:13: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\Module\ConnectorInterface does not exist (see https://psalm.dev/200)
MismatchingDocblockPropertyType: src/TestCase/AuthSource/Ldap/Configuration.php#L20
src/TestCase/AuthSource/Ldap/Configuration.php:20:13: MismatchingDocblockPropertyType: Parameter SimpleSAML\Module\monitor\TestCase\AuthSource\Ldap\Configuration::$connection has wrong type 'SimpleSAML\Module\ConnectorInterface|null', should be 'SimpleSAML\Module\ldap\ConnectorInterface|null' (see https://psalm.dev/264)
PossiblyNullReference: src/TestCase/AuthSource/Ldap/Configuration.php#L52
src/TestCase/AuthSource/Ldap/Configuration.php:52:44: PossiblyNullReference: Cannot call method getString on possibly null value (see https://psalm.dev/083)
PossiblyNullReference: src/TestCase/AuthSource/Ldap/Configuration.php#L53
src/TestCase/AuthSource/Ldap/Configuration.php:53:46: PossiblyNullReference: Cannot call method getOptionalString on possibly null value (see https://psalm.dev/083)
PossiblyNullReference: src/TestCase/AuthSource/Ldap/Configuration.php#L54
src/TestCase/AuthSource/Ldap/Configuration.php:54:43: PossiblyNullReference: Cannot call method getOptionalInteger on possibly null value (see https://psalm.dev/083)
PossiblyNullReference: src/TestCase/AuthSource/Ldap/Configuration.php#L55
src/TestCase/AuthSource/Ldap/Configuration.php:55:43: PossiblyNullReference: Cannot call method getOptionalInteger on possibly null value (see https://psalm.dev/083)
Unit tests, PHP 8.3, ubuntu-latest: tests/src/TestCase/Network/ConnectUriTest.php#L32
Failed asserting that -2 matches expected 2.
Unit tests, PHP 8.3, ubuntu-latest: tests/src/TestConfigurationTest.php#L62
Failed asserting that an array is not empty.
Unit tests, PHP 8.3, ubuntu-latest
Process completed with exit code 2.
Unit tests, PHP 8.1, ubuntu-latest: tests/src/TestCase/Network/ConnectUriTest.php#L32
Failed asserting that -2 matches expected 2.
Unit tests, PHP 8.1, ubuntu-latest: tests/src/TestConfigurationTest.php#L62
Failed asserting that an array is not empty.
Unit tests, PHP 8.1, ubuntu-latest
Process completed with exit code 2.
Unit tests, PHP 8.2, ubuntu-latest: tests/src/TestCase/Network/ConnectUriTest.php#L32
Failed asserting that -2 matches expected 2.
Unit tests, PHP 8.2, ubuntu-latest: tests/src/TestConfigurationTest.php#L62
Failed asserting that an array is not empty.
Unit tests, PHP 8.2, ubuntu-latest
Process completed with exit code 2.
Unit tests, PHP 8.2, windows-latest: tests/src/TestCase/Network/ConnectUriTest.php#L32
Failed asserting that -2 matches expected 2.
Unit tests, PHP 8.2, windows-latest: tests/src/TestCase/Store/SqlTest.php#L32
Failed asserting that -3 matches expected 2.
Unit tests, PHP 8.2, windows-latest: tests/src/TestConfigurationTest.php#L62
Failed asserting that an array is not empty.
Unit tests, PHP 8.2, windows-latest
Process completed with exit code 1.
Unit tests, PHP 8.3, windows-latest
The job was canceled because "windows-latest_8_2" failed.
Unit tests, PHP 8.3, windows-latest: tests/src/TestCase/Network/ConnectUriTest.php#L32
Failed asserting that -2 matches expected 2.
Unit tests, PHP 8.3, windows-latest: tests/src/TestCase/Store/SqlTest.php#L32
Failed asserting that -3 matches expected 2.
Unit tests, PHP 8.3, windows-latest: tests/src/TestConfigurationTest.php#L62
Failed asserting that an array is not empty.
Unit tests, PHP 8.3, windows-latest
Process completed with exit code 1.
Unit tests, PHP 8.1, windows-latest
The job was canceled because "windows-latest_8_2" failed.
Unit tests, PHP 8.1, windows-latest
The operation was canceled.
MixedArrayAssignment: hooks/hook_frontpage.php#L18
hooks/hook_frontpage.php:18:5: MixedArrayAssignment: Cannot access array value on mixed variable $links['config'] (see https://psalm.dev/117)
PropertyNotSetInConstructor: src/Controller/MonitorController.php#L56
src/Controller/MonitorController.php:56:19: PropertyNotSetInConstructor: Property SimpleSAML\Module\monitor\Controller\MonitorController::$state is not defined in constructor of SimpleSAML\Module\monitor\Controller\MonitorController or in any methods called in the constructor (see https://psalm.dev/074)
MixedInferredReturnType: src/Controller/MonitorController.php#L152
src/Controller/MonitorController.php:152:16: MixedInferredReturnType: Could not verify return type 'Symfony\Component\HttpFoundation\JsonResponse' for SimpleSAML\Module\monitor\Controller\MonitorController::processJson (see https://psalm.dev/047)
MixedReturnStatement: src/Controller/MonitorController.php#L156
src/Controller/MonitorController.php:156:16: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
MixedArrayAccess: src/Controller/MonitorController.php#L157
src/Controller/MonitorController.php:157:27: MixedArrayAccess: Cannot access array value on mixed variable $this->healthInfo[$this->state] (see https://psalm.dev/051)
MixedInferredReturnType: src/Monitor.php#L72
src/Monitor.php:72:16: MixedInferredReturnType: Could not verify return type 'int' for SimpleSAML\Module\monitor\Monitor::getState (see https://psalm.dev/047)
MixedReturnStatement: src/Monitor.php#L77
src/Monitor.php:77:16: MixedReturnStatement: Possibly-mixed return value (see https://psalm.dev/138)
MixedReturnStatement: src/Monitor.php#L77
src/Monitor.php:77:16: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
MixedAssignment: src/TestCase/AuthSource/Ldap/Bind.php#L34
src/TestCase/AuthSource/Ldap/Bind.php:34:9: MixedAssignment: Unable to determine the type that $this->connection is being assigned to (see https://psalm.dev/032)
MixedAssignment: src/TestCase/AuthSource/Ldap/Bind.php#L35
src/TestCase/AuthSource/Ldap/Bind.php:35:9: MixedAssignment: Unable to determine the type that $authSourceData is being assigned to (see https://psalm.dev/032)
DeprecatedMethod: tests/src/TestCase/AuthSource/Ldap/LdapBindTest.php#L28
tests/src/TestCase/AuthSource/Ldap/LdapBindTest.php:28:78: DeprecatedMethod: The method PHPUnit\Framework\TestCase::returnValue has been marked as deprecated (see https://psalm.dev/001)
DeprecatedMethod: tests/src/TestCase/AuthSource/Ldap/LdapSearchTest.php#L35
tests/src/TestCase/AuthSource/Ldap/LdapSearchTest.php:35:80: DeprecatedMethod: The method PHPUnit\Framework\TestCase::returnValue has been marked as deprecated (see https://psalm.dev/001)
DeprecatedMethod: tests/src/TestCase/AuthSource/NegotiateTest.php#L51
tests/src/TestCase/AuthSource/NegotiateTest.php:51:96: DeprecatedMethod: The method PHPUnit\Framework\TestCase::returnValue has been marked as deprecated (see https://psalm.dev/001)
DeprecatedMethod: tests/src/TestCase/AuthSource/NegotiateTest.php#L53
tests/src/TestCase/AuthSource/NegotiateTest.php:53:20: DeprecatedMethod: The method PHPUnit\Framework\TestCase::returnValue has been marked as deprecated (see https://psalm.dev/001)
DeprecatedMethod: tests/src/TestCase/AuthSource/NegotiateTest.php#L69
tests/src/TestCase/AuthSource/NegotiateTest.php:69:96: DeprecatedMethod: The method PHPUnit\Framework\TestCase::returnValue has been marked as deprecated (see https://psalm.dev/001)
DeprecatedMethod: tests/src/TestCase/AuthSource/NegotiateTest.php#L84
tests/src/TestCase/AuthSource/NegotiateTest.php:84:96: DeprecatedMethod: The method PHPUnit\Framework\TestCase::returnValue has been marked as deprecated (see https://psalm.dev/001)
Unit tests, PHP 8.3, ubuntu-latest: src/TestCase/Network/ConnectUri.php#L100
stream_socket_client(): Unable to connect to ssl://localhost: (Failed to parse address "localhost:")
Unit tests, PHP 8.3, ubuntu-latest: tests/src/TestCase/CertificatesTest.php#L27
file_get_contents(/home/runner/work/simplesamlphp-module-monitor/simplesamlphp-module-monitor/vendor/simplesamlphp/xml-security/tests/resources/certificates//expired.simplesamlphp.org.crt): Failed to open stream: No such file or directory
Unit tests, PHP 8.3, ubuntu-latest: tests/src/TestCase/CertificatesTest.php#L44
file_get_contents(/home/runner/work/simplesamlphp-module-monitor/simplesamlphp-module-monitor/vendor/simplesamlphp/xml-security/tests/resources/certificates//signed.simplesamlphp.org.crt): Failed to open stream: No such file or directory
Unit tests, PHP 8.3, ubuntu-latest: src/TestCase/Network/ConnectUri.php#L100
stream_socket_client(): Unable to connect to ssl://127.0.0.1:443 (Connection refused)
Unit tests, PHP 8.3, ubuntu-latest: src/TestCase/Network/ConnectUri.php#L100
stream_socket_client(): Unable to connect to ssl://127.0.0.1:442 (Connection refused)
Unit tests, PHP 8.1, ubuntu-latest: src/TestCase/Network/ConnectUri.php#L106
stream_socket_client(): Unable to connect to ssl://localhost: (Failed to parse address "localhost:")
Unit tests, PHP 8.1, ubuntu-latest: tests/src/TestCase/CertificatesTest.php#L27
file_get_contents(/home/runner/work/simplesamlphp-module-monitor/simplesamlphp-module-monitor/vendor/simplesamlphp/xml-security/tests/resources/certificates//expired.simplesamlphp.org.crt): Failed to open stream: No such file or directory
Unit tests, PHP 8.1, ubuntu-latest: tests/src/TestCase/CertificatesTest.php#L44
file_get_contents(/home/runner/work/simplesamlphp-module-monitor/simplesamlphp-module-monitor/vendor/simplesamlphp/xml-security/tests/resources/certificates//signed.simplesamlphp.org.crt): Failed to open stream: No such file or directory
Unit tests, PHP 8.1, ubuntu-latest: src/TestCase/Network/ConnectUri.php#L106
stream_socket_client(): Unable to connect to ssl://127.0.0.1:443 (Connection refused)
Unit tests, PHP 8.1, ubuntu-latest: src/TestCase/Network/ConnectUri.php#L106
stream_socket_client(): Unable to connect to ssl://127.0.0.1:442 (Connection refused)
Unit tests, PHP 8.2, ubuntu-latest: src/TestCase/Network/ConnectUri.php#L100
stream_socket_client(): Unable to connect to ssl://localhost: (Failed to parse address "localhost:")
Unit tests, PHP 8.2, ubuntu-latest: tests/src/TestCase/CertificatesTest.php#L27
file_get_contents(/home/runner/work/simplesamlphp-module-monitor/simplesamlphp-module-monitor/vendor/simplesamlphp/xml-security/tests/resources/certificates//expired.simplesamlphp.org.crt): Failed to open stream: No such file or directory
Unit tests, PHP 8.2, ubuntu-latest: tests/src/TestCase/CertificatesTest.php#L44
file_get_contents(/home/runner/work/simplesamlphp-module-monitor/simplesamlphp-module-monitor/vendor/simplesamlphp/xml-security/tests/resources/certificates//signed.simplesamlphp.org.crt): Failed to open stream: No such file or directory
Unit tests, PHP 8.2, ubuntu-latest: src/TestCase/Network/ConnectUri.php#L100
stream_socket_client(): Unable to connect to ssl://127.0.0.1:443 (Connection refused)
Unit tests, PHP 8.2, ubuntu-latest: src/TestCase/Network/ConnectUri.php#L100
stream_socket_client(): Unable to connect to ssl://127.0.0.1:442 (Connection refused)
Unit tests, PHP 8.2, windows-latest: src/TestCase/Network/ConnectUri.php#L100
stream_socket_client(): Unable to connect to ssl://localhost: (Failed to parse address "localhost:")
Unit tests, PHP 8.2, windows-latest: tests/src/TestCase/CertificatesTest.php#L27
file_get_contents(D:\a\simplesamlphp-module-monitor\simplesamlphp-module-monitor/vendor/simplesamlphp/xml-security/tests/resources/certificates//expired.simplesamlphp.org.crt): Failed to open stream: No such file or directory
Unit tests, PHP 8.2, windows-latest: tests/src/TestCase/CertificatesTest.php#L44
file_get_contents(D:\a\simplesamlphp-module-monitor\simplesamlphp-module-monitor/vendor/simplesamlphp/xml-security/tests/resources/certificates//signed.simplesamlphp.org.crt): Failed to open stream: No such file or directory
Unit tests, PHP 8.2, windows-latest: src/TestCase/Network/ConnectUri.php#L100
stream_socket_client(): Unable to connect to ssl://127.0.0.1:443 (No connection could be made because the target machine actively refused it)
Unit tests, PHP 8.2, windows-latest: src/TestCase/Network/ConnectUri.php#L100
stream_socket_client(): Unable to connect to ssl://127.0.0.1:442 (No connection could be made because the target machine actively refused it)
Unit tests, PHP 8.3, windows-latest: src/TestCase/Network/ConnectUri.php#L100
stream_socket_client(): Unable to connect to ssl://localhost: (Failed to parse address "localhost:")
Unit tests, PHP 8.3, windows-latest: tests/src/TestCase/CertificatesTest.php#L27
file_get_contents(D:\a\simplesamlphp-module-monitor\simplesamlphp-module-monitor/vendor/simplesamlphp/xml-security/tests/resources/certificates//expired.simplesamlphp.org.crt): Failed to open stream: No such file or directory
Unit tests, PHP 8.3, windows-latest: tests/src/TestCase/CertificatesTest.php#L44
file_get_contents(D:\a\simplesamlphp-module-monitor\simplesamlphp-module-monitor/vendor/simplesamlphp/xml-security/tests/resources/certificates//signed.simplesamlphp.org.crt): Failed to open stream: No such file or directory
Unit tests, PHP 8.3, windows-latest: src/TestCase/Network/ConnectUri.php#L100
stream_socket_client(): Unable to connect to ssl://127.0.0.1:443 (No connection could be made because the target machine actively refused it)
Unit tests, PHP 8.3, windows-latest: src/TestCase/Network/ConnectUri.php#L100
stream_socket_client(): Unable to connect to ssl://127.0.0.1:442 (No connection could be made because the target machine actively refused it)