From b209e632344904659d05ebb0e57ae318d3d4c223 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 22 Nov 2013 16:17:59 +0000 Subject: [PATCH] Introduce unit tests for the `normalize_whitespace()` function. Props mdbitz. Fixes #26163. git-svn-id: https://develop.svn.wordpress.org/trunk@26327 602fd350-edb4-49c9-b593-d223f7449a82 --- .../tests/formatting/NormalizeWhitespace.php | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 tests/phpunit/tests/formatting/NormalizeWhitespace.php diff --git a/tests/phpunit/tests/formatting/NormalizeWhitespace.php b/tests/phpunit/tests/formatting/NormalizeWhitespace.php new file mode 100644 index 0000000000..554038c2b7 --- /dev/null +++ b/tests/phpunit/tests/formatting/NormalizeWhitespace.php @@ -0,0 +1,52 @@ +assertEquals($exp_str, normalize_whitespace( $in_str ) ); + } +} \ No newline at end of file