Change record status: 
Project: 
Introduced in branch: 
8.8.x
Introduced in version: 
8.8.5
Description: 

Drupal\Tests\Traits\ExpectDeprecationTrait implements

protected function expectDeprecation($message)

This method has a name collision with a PHPUnit 8 method on PHPUnit\Framework\TestCase that has a different signature and a different purpose.

This would prevent future usage of PHPUnit 8. In order to facilitate the move to PHPUnit 8, the method has been renamed to addExpectedDeprecationMessage.

Tests that use this method should update this to the new name.

Impacts: 
Module developers