public function testSanitizeTitle() { $title = 'this is a text example'; $this->assertEquals('this-is-a-text-example', Formatting::sanitize_title_with_dashes($title)); $title = 'this–is—a text example'; $this->assertEquals('this-is-a-text-example', Formatting::sanitize_title_with_dashes($title, '', 'save')); }