public function htmlSpecialCharsWorks($string, $preserveEntities, $expected) { $helper = new StringHelper(); $result = $helper->htmlSpecialChars($string, $preserveEntities); $this->assertSame($expected, $result); }