From 7979ea6b1adb4f3012be6ad18ce95b3363044bd2 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Tue, 29 May 2018 08:59:46 -0300 Subject: [PATCH] Use ob_end_clean() instead of ob_get_clean() Doing this change since the content of the output buffer is not used. --- tests/unit-tests/importer/tax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit-tests/importer/tax.php b/tests/unit-tests/importer/tax.php index d788b3a6681..f563aad4839 100644 --- a/tests/unit-tests/importer/tax.php +++ b/tests/unit-tests/importer/tax.php @@ -35,7 +35,7 @@ class WC_Tests_Tax_CSV_Importer extends WC_Unit_Test_Case { $importer = new WC_Tax_Rate_Importer(); ob_start(); $importer->import( $this->csv_file ); - ob_get_clean(); + ob_end_clean(); $rate_count = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}woocommerce_tax_rates" ); $this->assertEquals( 5, $rate_count ); }