Skip to content

Update test/Unit/ContentNegotiationMiddlewareTest.php #156

Update test/Unit/ContentNegotiationMiddlewareTest.php

Update test/Unit/ContentNegotiationMiddlewareTest.php #156

Triggered via push May 24, 2024 14:24
Status Success
Total duration 1m 4s
Artifacts

codecov.yml

on: push
Matrix: Code Coverage
Fit to window
Zoom out
Zoom in

Annotations

81 warnings and 1 notice
Code Coverage (ubuntu-latest, 8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Code Coverage (ubuntu-latest, 8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Type mismatch in property assignment: test/Unit/ContentNegotiationMiddlewareTest.php#L56
Incompatible types: Expected property of type '\\Psr\\Http\\Message\\ServerRequestInterface', '\\Laminas\\Diactoros\\ServerRequest' provided
Incompatible return type: src/App/src/Middleware/ContentNegotiationMiddleware.php#L53
Return value type is not compatible with declared
Incompatible return type: src/App/src/Middleware/ContentNegotiationMiddleware.php#L48
Return value type is not compatible with declared
Incompatible return type: src/App/src/Middleware/ContentNegotiationMiddleware.php#L67
Return value type is not compatible with declared
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L12
Undefined class 'Exception'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L42
Undefined class 'Exception'
Undefined class: src/App/src/Middleware/ContentNegotiationMiddleware.php#L14
Undefined class 'RequestHandlerInterface'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L23
Undefined class 'RouteResult'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L51
Undefined class 'MiddlewareInterface'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L56
Undefined class 'ServerRequest'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L83
Undefined class 'Response'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L91
Undefined class 'RouteResult'
Undefined class: src/App/src/Middleware/ContentNegotiationMiddleware.php#L26
Undefined class 'MiddlewareInterface'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L13
Undefined class 'TestCase'
Undefined class: src/App/src/Middleware/ContentNegotiationMiddleware.php#L12
Undefined class 'ServerRequestInterface'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L46
Undefined class 'RequestHandlerInterface'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L14
Undefined class 'ServerRequestInterface'
Undefined class: src/App/src/Middleware/ContentNegotiationMiddleware.php#L36
Undefined class 'ServerRequestInterface'
Undefined class: src/App/src/Middleware/ContentNegotiationMiddleware.php#L13
Undefined class 'MiddlewareInterface'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L9
Undefined class 'Response'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L11
Undefined class 'RouteResult'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L77
Undefined class 'RouteResult'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L16
Undefined class 'RequestHandlerInterface'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L48
Undefined class 'RouteResult'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L97
Undefined class 'Response'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L15
Undefined class 'MiddlewareInterface'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L22
Undefined class 'RequestHandlerInterface'
Undefined class: src/App/src/Middleware/ContentNegotiationMiddleware.php#L11
Undefined class 'ResponseInterface'
Undefined class: src/App/src/ConfigProvider.php#L67
Undefined class 'AnnotatedServiceFactory'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L64
Undefined class 'RouteResult'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L8
Undefined class 'ServerRequest'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L69
Undefined class 'Response'
Undefined class: src/App/src/Middleware/ContentNegotiationMiddleware.php#L37
Undefined class 'RequestHandlerInterface'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L21
Undefined class 'ServerRequestInterface'
Undefined class: test/Unit/ContentNegotiationMiddlewareTest.php#L18
Undefined class 'TestCase'
Undefined class: src/App/src/Middleware/ContentNegotiationMiddleware.php#L38
Undefined class 'ResponseInterface'
Undefined method: test/Unit/ContentNegotiationMiddlewareTest.php#L130
Method 'assertTrue' is undefined
Undefined method: test/Unit/ContentNegotiationMiddlewareTest.php#L140
Method 'assertFalse' is undefined
Undefined method: test/Unit/ContentNegotiationMiddlewareTest.php#L46
Method 'createMock' is undefined
Undefined method: test/Unit/ContentNegotiationMiddlewareTest.php#L51
Method 'createMock' is undefined
Undefined method: test/Unit/ContentNegotiationMiddlewareTest.php#L68
Method 'assertSame' is undefined
Undefined method: test/Unit/ContentNegotiationMiddlewareTest.php#L104
Method 'assertIsArray' is undefined
Undefined method: test/Unit/ContentNegotiationMiddlewareTest.php#L123
Method 'assertFalse' is undefined
Undefined method: test/Unit/ContentNegotiationMiddlewareTest.php#L117
Method 'assertTrue' is undefined
Undefined method: test/Unit/ContentNegotiationMiddlewareTest.php#L111
Method 'assertTrue' is undefined
Undefined method: test/Unit/ContentNegotiationMiddlewareTest.php#L96
Method 'assertSame' is undefined
Undefined method: test/Unit/ContentNegotiationMiddlewareTest.php#L134
Method 'assertTrue' is undefined
Undefined method: test/Unit/ContentNegotiationMiddlewareTest.php#L82
Method 'assertSame' is undefined
Undefined namespace: test/Unit/ContentNegotiationMiddlewareTest.php#L12
Undefined namespace 'MockObject'
Undefined namespace: test/Unit/ContentNegotiationMiddlewareTest.php#L10
Undefined namespace 'Router'
Undefined namespace: test/Unit/ContentNegotiationMiddlewareTest.php#L13
Undefined namespace 'Framework'
Undefined namespace: test/Unit/ContentNegotiationMiddlewareTest.php#L11
Undefined namespace 'Router'
Undefined namespace: test/Unit/ContentNegotiationMiddlewareTest.php#L14
Undefined namespace 'Message'
Undefined namespace: test/Unit/ContentNegotiationMiddlewareTest.php#L16
Undefined namespace 'Server'
Undefined namespace: test/Unit/ContentNegotiationMiddlewareTest.php#L15
Undefined namespace 'Server'
Undefined namespace: test/Unit/ContentNegotiationMiddlewareTest.php#L8
Undefined namespace 'Diactoros'