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