Skip to content

Instantly share code, notes, and snippets.

@wilr
Created January 17, 2013 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilr/4553562 to your computer and use it in GitHub Desktop.
Save wilr/4553562 to your computer and use it in GitHub Desktop.
Example test to show urlRewriter is broken
<?php
class HTTPisBorkedTest extends SapphireTest {
public function testAbsoluteUrls() {
// should leave external urls along
$this->assertEquals('<a href="http://external.com">', HTTP::absoluteURLs('<a href="http://external.com">'));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment