slug() public method

Convert a string to a slug version of itself
public slug ( string $original ) : string
$original string
return string
 /**
  * @covers Whoops\Util\TemplateHelper::slug
  */
 public function testSlug()
 {
     $this->assertEquals("hello-world", $this->helper->slug("Hello, world!"));
     $this->assertEquals("potato-class", $this->helper->slug("Potato class"));
 }