diff --git a/tests/phpunit/tests/user.php b/tests/phpunit/tests/user.php index 65869eea4d..481fe6922e 100644 --- a/tests/phpunit/tests/user.php +++ b/tests/phpunit/tests/user.php @@ -187,6 +187,9 @@ class Tests_User extends WP_UnitTestCase { $this->assertEquals( 'foo', $user->data->$key ); // This will fail with WP < 3.3 foreach ( (array) $user as $key => $value ) { + if ( $value instanceof wpdb ) { + continue; + } $this->assertEquals( $value, $user->$key ); } }