public static function title($obj = null) { return ucwords(strval($obj)); }
public function test_title() { $this->assertEquals('Foo-bar', Helper::title('foo-bar')); $this->assertEquals('This Is The Title', Helper::title('this is the title')); }