|
|
@@ -84,7 +84,7 @@ class FunctionsTest extends TestCase
|
|
|
public function testDeprecationWarningEnabled(): void
|
|
|
{
|
|
|
$this->expectDeprecation();
|
|
|
- $this->expectDeprecationMessageMatches('/This is going away - (.*?)[\/\\\]FunctionsTest.php, line\: \d+/');
|
|
|
+ $this->expectDeprecationMessageMatches('/This is going away\n(.*?)[\/\\\]FunctionsTest.php, line\: \d+/');
|
|
|
|
|
|
$this->withErrorReporting(E_ALL, function (): void {
|
|
|
deprecationWarning('This is going away', 2);
|
|
|
@@ -118,7 +118,7 @@ class FunctionsTest extends TestCase
|
|
|
public function testDeprecationWarningEnabledDefaultFrame(): void
|
|
|
{
|
|
|
$this->expectDeprecation();
|
|
|
- $this->expectDeprecationMessageMatches('/This is going away too - (.*?)[\/\\\]TestCase.php, line\: \d+/');
|
|
|
+ $this->expectDeprecationMessageMatches('/This is going away too\n(.*?)[\/\\\]TestCase.php, line\: \d+/');
|
|
|
|
|
|
$this->withErrorReporting(E_ALL, function (): void {
|
|
|
deprecationWarning('This is going away too');
|