You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
417 B

  1. <?php
  2. class HelpersTest extends PHPUnit_Framework_TestCase {
  3. public function testLowercaseHostname() {
  4. $url = 'http://Example.com/';
  5. $result = normalize_url($url);
  6. $this->assertEquals('http://example.com/', $result);
  7. }
  8. public function testAddsSlashToBareDomain() {
  9. $url = 'http://example.com';
  10. $result = normalize_url($url);
  11. $this->assertEquals('http://example.com/', $result);
  12. }
  13. }