From ec01033a2d0b4d46a38e9d589bd8da91eebf26e7 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Fri, 4 Dec 2015 16:40:10 +0000 Subject: [PATCH] Unit Tests: Implement `addWarning()` method in SpeedTrapListener. The method was introduced in PHPUnit 5.1.0, released today. Fixes #34846. git-svn-id: https://develop.svn.wordpress.org/trunk@35767 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/speed-trap-listener.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/phpunit/includes/speed-trap-listener.php b/tests/phpunit/includes/speed-trap-listener.php index 5f79f43094..a0000eed03 100644 --- a/tests/phpunit/includes/speed-trap-listener.php +++ b/tests/phpunit/includes/speed-trap-listener.php @@ -59,6 +59,18 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener { } + /** + * A warning occurred. + * + * @param PHPUnit_Framework_Test $test + * @param PHPUnit_Framework_Warning $e + * @param float $time + * @since Method available since Release 5.1.0 + */ + public function addWarning(PHPUnit_Framework_Test $test, PHPUnit_Framework_Warning $e, $time) + { + } + /** * A failure occurred. *