diff --git a/tests/php/src/TestCase.php b/tests/php/src/TestCase.php index 17e56576ff7..09f7926c129 100644 --- a/tests/php/src/TestCase.php +++ b/tests/php/src/TestCase.php @@ -81,17 +81,6 @@ public function assertIndexedArrayContains( $expected_subset, $actual_superset ) * @return mixed Data. */ public function normalize_closure_function_name( $data ) { - if ( is_string( $data ) ) { - $data = preg_replace( - '/\{closure[^}]+}/', - '{closure}', - $data - ); - } elseif ( is_array( $data ) ) { - foreach ( $data as $key => $value ) { - $data[ $key ] = $this->normalize_closure_function_name( $value ); - } - } return $data; } }