public function cropWorks($methodName, $maximumCharacters, $suffixString, $text, $expected) { $helper = new StringHelper(); $result = $helper->{$methodName}($text, $maximumCharacters, $suffixString); $this->assertSame($expected, $result); }