diff --git a/tests/CbtThemeLocale/escapeTextContent.php b/tests/CbtThemeLocale/escapeTextContent.php index 62b18b02..8e594068 100644 --- a/tests/CbtThemeLocale/escapeTextContent.php +++ b/tests/CbtThemeLocale/escapeTextContent.php @@ -52,4 +52,10 @@ public function test_escape_text_content_with_inner_html() { $expected_output = "get( 'TextDomain' ) . "' ), '

', '', '', '

'); ?>"; $this->assertEquals( $expected_output, $escaped_string ); } + + public function test_escape_text_content_with_non_string() { + $string = null; + $escaped_string = $this->call_private_method( 'escape_text_content', array( $string ) ); + $this->assertEquals( $string, $escaped_string ); + } }