|
@@ -47,12 +47,12 @@ class FunctionsTest extends TestCase
|
|
|
* Test error messages coming out when debug is on, manually setting the stack frame
|
|
* Test error messages coming out when debug is on, manually setting the stack frame
|
|
|
*
|
|
*
|
|
|
* @expectedException PHPUnit\Framework\Error\Deprecated
|
|
* @expectedException PHPUnit\Framework\Error\Deprecated
|
|
|
- * @expectedExceptionMessageRegExp /This is going away - (.*?)[\/\\]TestCase.php, line\: \d+/
|
|
|
|
|
|
|
+ * @expectedExceptionMessageRegExp /This is going away - (.*?)[\/\\]FunctionsTest.php, line\: \d+/
|
|
|
*/
|
|
*/
|
|
|
public function testDeprecationWarningEnabled()
|
|
public function testDeprecationWarningEnabled()
|
|
|
{
|
|
{
|
|
|
$this->withErrorReporting(E_ALL, function () {
|
|
$this->withErrorReporting(E_ALL, function () {
|
|
|
- deprecationWarning('This is going away', 1);
|
|
|
|
|
|
|
+ deprecationWarning('This is going away', 2);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -60,7 +60,7 @@ class FunctionsTest extends TestCase
|
|
|
* Test error messages coming out when debug is on, not setting the stack frame manually
|
|
* Test error messages coming out when debug is on, not setting the stack frame manually
|
|
|
*
|
|
*
|
|
|
* @expectedException PHPUnit\Framework\Error\Deprecated
|
|
* @expectedException PHPUnit\Framework\Error\Deprecated
|
|
|
- * @expectedExceptionMessageRegExp /This is going away - (.*?)[\/\\]FunctionsTest.php, line\: \d+/
|
|
|
|
|
|
|
+ * @expectedExceptionMessageRegExp /This is going away - (.*?)[\/\\]TestCase.php, line\: \d+/
|
|
|
*/
|
|
*/
|
|
|
public function testDeprecationWarningEnabledDefaultFrame()
|
|
public function testDeprecationWarningEnabledDefaultFrame()
|
|
|
{
|
|
{
|