diff --git a/tests/phpunit/includes/utils.php b/tests/phpunit/includes/utils.php index 4f67185ea3..6d45117368 100644 --- a/tests/phpunit/includes/utils.php +++ b/tests/phpunit/includes/utils.php @@ -372,17 +372,6 @@ function mask_input_value( $in, $name = '_wpnonce' ) { return preg_replace( '@]*) name="' . preg_quote( $name ) . '"([^>]*) value="[^>]*" />@', '', $in ); } -if ( ! function_exists( 'str_getcsv' ) ) { - function str_getcsv( $input, $delimiter = ',', $enclosure = '"', $escape = '\\' ) { - $fp = fopen( 'php://temp/', 'r+' ); - fputs( $fp, $input ); - rewind( $fp ); - $data = fgetcsv( $fp, strlen( $input ), $delimiter, $enclosure ); - fclose( $fp ); - return $data; - } -} - /** * Removes the post type and its taxonomy associations. */