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

Fix: Tests throwing warnings #1374

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

JimTools
Copy link
Contributor

Fixing tests that are throwing warnings and reducing noise in test output. has been done in three stages.

  • Fixing PHPUnit deprecation notices
  • Fixing language-level deprecation warnings
  • Updated mongodb/mongodb to fix language-level deprecation warnings
PHPUnit 9.6.22 by Sebastian Bergmann and contributors.

.............................................................   61 / 3135 (  1%)
.............................................................  122 / 3135 (  3%)
.............................................................  183 / 3135 (  5%)
.............................................................  244 / 3135 (  7%)
.............................................................  305 / 3135 (  9%)
.............................................................  366 / 3135 ( 11%)
.............................................................  427 / 3135 ( 13%)
.............................................................  488 / 3135 ( 15%)
.............................................................  549 / 3135 ( 17%)
.............................................................  610 / 3135 ( 19%)
.............................................................  671 / 3135 ( 21%)
.............................................................  732 / 3135 ( 23%)
.............................................................  793 / 3135 ( 25%)
.............................................................  854 / 3135 ( 27%)
.............................................................  915 / 3135 ( 29%)
.............................................................  976 / 3135 ( 31%)
............................................................. 1037 / 3135 ( 33%)
............................................................. 1098 / 3135 ( 35%)
............................................................. 1159 / 3135 ( 36%)
............................................................. 1220 / 3135 ( 38%)
............................................................. 1281 / 3135 ( 40%)
............................................................. 1342 / 3135 ( 42%)
.............................I............................... 1403 / 3135 ( 44%)
..........................PHP Deprecated:  AMQPSSLConnection is deprecated and will be removed in version 4 of php-amqplib in /mqdev/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AMQPSSLConnection.php on line 31
.
Deprecated: AMQPSSLConnection is deprecated and will be removed in version 4 of php-amqplib in /mqdev/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AMQPSSLConnection.php on line 31
.................................. 1464 / 3135 ( 46%)
................I.....PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1300
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1300

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1300
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1300

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.................................. 1525 / 3135 ( 48%)
............................................................. 1586 / 3135 ( 50%)
............................................................. 1647 / 3135 ( 52%)
............................................................. 1708 / 3135 ( 54%)
............................................................. 1769 / 3135 ( 56%)
............................................................. 1830 / 3135 ( 58%)
............................................................. 1891 / 3135 ( 60%)
............................................................. 1952 / 3135 ( 62%)
............................................................. 2013 / 3135 ( 64%)
............................................................. 2074 / 3135 ( 66%)
............................................................. 2135 / 3135 ( 68%)
............................................................. 2196 / 3135 ( 70%)
............................................................. 2257 / 3135 ( 71%)
............................................................. 2318 / 3135 ( 73%)
............................................................. 2379 / 3135 ( 75%)
............................................................. 2440 / 3135 ( 77%)
............................................................. 2501 / 3135 ( 79%)
............................................................. 2562 / 3135 ( 81%)
............................................................. 2623 / 3135 ( 83%)
............................................................. 2684 / 3135 ( 85%)
........PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.......................PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
...PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
..................... 2745 / 3135 ( 87%)
............................................................. 2806 / 3135 ( 89%)
............................................................. 2867 / 3135 ( 91%)
..............................PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
......PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1780

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mqdev/vendor/bunny/bunny/src/Bunny/ClientMethods.php on line 1785
...................... 2928 / 3135 ( 93%)
............................................................. 2989 / 3135 ( 95%)
............................................................. 3050 / 3135 ( 97%)
............................................................. 3111 / 3135 ( 99%)
........................                                      3135 / 3135 (100%)

Time: 02:04.846, Memory: 138.50 MB

OK, but incomplete, skipped, or risky tests!
Tests: 3135, Assertions: 6489, Incomplete: 2.

fixing unit test warnings that are throwing deprecation errors for PHPUnit 10
Upgrading mongodb/mongodb to fix deprection warnings
Adding a patch number to phpunit so the test suite is always using the highest
version of phpunit
@JimTools JimTools force-pushed the bugfix/test-warnings branch from 190ac7c to ad5153f Compare January 19, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant