/** * Test that route() returns a URL friendly slug. */ public function testRoute() { $this->assertEquals('camel-case', Inflector::route('camel Case')); $this->assertEquals('studly-case', Inflector::route('StuDly CaSe')); $this->assertEquals('title-case', Inflector::route('Title Case')); $this->assertEquals('normal-case', Inflector::route('Normal case')); $this->assertEquals('lowercase', Inflector::route('lowercase')); $this->assertEquals('uppercase', Inflector::route('UPPERCASE')); $this->assertEquals('under-score', Inflector::route('under_score')); $this->assertEquals('dash-es', Inflector::route('dash-es')); $this->assertEquals('123-numbers', Inflector::route('123 numbers')); $this->assertEquals('with-ext.xml', Inflector::route('with EXT.xml')); $this->assertEquals('lots-of-white-space', Inflector::route('lots of white space')); }