예제 #1
0
 /**
  *
  */
 public function testAutolink()
 {
     $this->assertEquals('go to <a href="http://example.org">http://example.org</a>', Str::autolink('go to http://example.org'));
     $this->assertEquals('go to <a href="http://example.org">http://example.org</a>', Str::autolink('go to <a href="http://example.org">http://example.org</a>'));
     $this->assertEquals('go to <a href="http://example.org" class="foo">http://example.org</a>', Str::autolink('go to http://example.org', ['class' => 'foo']));
 }