From 645813bc5779b368402c3ca5340cf92e2ebe79a7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 May 2021 11:54:28 +0000 Subject: [PATCH] Coding Standards: Move assignment out of condition in `phpunit/includes/speed-trap-listener.php`. Follow-up to [45588] for `phpunit/includes/phpunit7/speed-trap-listener.php`. See #52625. git-svn-id: https://develop.svn.wordpress.org/trunk@50998 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/speed-trap-listener.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/includes/speed-trap-listener.php b/tests/phpunit/includes/speed-trap-listener.php index 08689ee02c..9ad7cef1b6 100644 --- a/tests/phpunit/includes/speed-trap-listener.php +++ b/tests/phpunit/includes/speed-trap-listener.php @@ -266,7 +266,8 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener { * Renders slow test report footer. */ protected function renderFooter() { - if ( $hidden = $this->getHiddenCount( $this->slow ) ) { + $hidden = $this->getHiddenCount( $this->slow ); + if ( $hidden ) { echo sprintf( '...and there %s %s more above your threshold hidden from view', 1 === $hidden ? 'is' : 'are', $hidden ); } }