Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPUnit Deprecation Warnings #4193

Closed
sjinks opened this issue Mar 8, 2023 · 2 comments · Fixed by #4393
Closed

PHPUnit Deprecation Warnings #4193

sjinks opened this issue Mar 8, 2023 · 2 comments · Fixed by #4393
Assignees
Labels
[Component] Tests [Type] Maintenance Support the development in this repo

Comments

@sjinks
Copy link
Member

sjinks commented Mar 8, 2023

1) Automattic\VIP\Search\Queue_Test::test_requeue_with_different_priority
assertObjectHasAttribute() is deprecated and will be removed in PHPUnit 10.

2) Automattic\VIP\Search\Search_Test::test__maybe_alert_for_prolonged_query_limiting with data set #3 (7201, true)
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

3) Automattic\VIP\Prometheus\Test_Prometheus::test_create_registry_wrong_backend
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

4) Automattic\VIP\Cache\Vary_Cache_Test::test__register_groups__invalid with data set "invalid-group-name" (array('dev-group---__'), 'invalid_vary_group_name')
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

5) Automattic\VIP\Cache\Vary_Cache_Test::test__register_groups__invalid with data set "invalid-group-array" (array('dev-group', 'dev-group---__'), 'invalid_vary_group_name')
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

6) Automattic\VIP\Cache\Vary_Cache_Test::test__register_groups__did_send_headers
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

7) Automattic\VIP\Files\Acl\VIP_Files_Acl_Test::test__maybe_load_restrictions__no_constant_and_with_one_option
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

8) Automattic\VIP\Files\Acl\VIP_Files_Acl_Test::test__send_visibility_headers__invalid_visibility
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

9) Automattic\VIP\Files\WP_Filesystem_VIP_Test::test__get_transport_for_path__disallowed_write
Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10.

10) Automattic\VIP\Files\Acl\Pre_WP_Utils\VIP_Files_Acl_Pre_Wp_Utils_Test::test__prepare_request__empty_request_uri
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

11) Automattic\VIP\Files\Acl\Pre_WP_Utils\VIP_Files_Acl_Pre_Wp_Utils_Test::test__prepare_request__invalid_request_uri
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

12) Automattic\VIP\Files\Acl\Pre_WP_Utils\VIP_Files_Acl_Pre_Wp_Utils_Test::test__validate_path__invalid with data set "empty-uri" ('', 'VIP Files ACL failed due to empty path')
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

13) Automattic\VIP\Files\Acl\Pre_WP_Utils\VIP_Files_Acl_Pre_Wp_Utils_Test::test__validate_path__invalid with data set "path-no-wp-content" ('/a/path/to/a/file.jpg', 'VIP Files ACL failed due to i...e.jpg)')
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

14) Automattic\VIP\Files\Acl\Pre_WP_Utils\VIP_Files_Acl_Pre_Wp_Utils_Test::test__validate_path__invalid with data set "relative-url-with-wp-content" ('en/wp-content/uploads/file.png', 'VIP Files ACL failed due to r...e.png)')
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

15) Automattic\VIP\Files\Acl\Pre_WP_Utils\VIP_Files_Acl_Pre_Wp_Utils_Test::test__validate_path__invalid with data set "null-uri" (null, 'VIP Files ACL failed due to empty path')
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.

16) VIP_Go_Cache_Manager_Test::test__invalid__queue_purge_url with data set "invalid_scheme" ('badscheme://example.com/path')
Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.
@rebeccahum
Copy link
Contributor

Related: sebastianbergmann/phpunit#5062

@sjinks
Copy link
Member Author

sjinks commented Apr 25, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Tests [Type] Maintenance Support the development in this repo
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants