pantheon-systems / wp-redis

WordPress Object Cache using Redis.
https://wordpress.org/plugins/wp-redis/
GNU General Public License v2.0
228 stars 68 forks source link

Fix connection throws Exception test after updating to PHPUnit 8 #255

Open danielbachhuber opened 5 years ago

danielbachhuber commented 5 years ago

PHPUnit 7 and PHP 7.4 combined throw this error:

1) CacheTest::test_setup_connection_throws_exception
Function ReflectionType::__toString() is deprecated

The test was skipped for PHP 7.4 in 9ff653e51842d712b2b50978efade0f8a0ba8697. After we upgrade to PHPUnit 8, we should restore the test.

Discovered with https://travis-ci.org/pantheon-systems/wp-redis/jobs/603912266