Ejemplo n.º 1
0
 public function testUrl()
 {
     $this->assertEquals('my-url', StringFormat::URL('myURL'));
     $this->assertEquals('my-url', StringFormat::URL('my--URL'));
     $this->assertEquals('my-url', StringFormat::URL('my  URL'));
     $this->assertEquals('my-url', StringFormat::URL('my %^&*  URL'));
     $this->assertEquals('my-url', StringFormat::URL('my____ URL--'));
     $this->assertEquals('my-url', StringFormat::URL('my/ \\URL'));
 }