From daf638b124177be473644142b378df8de1e51813 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 4 Nov 2024 11:46:11 -0800 Subject: [PATCH] Debug --- tests/php/src/TestCase.php | 11 ----------- 1 file changed, 11 deletions(-) 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; } }