You are here

function UrlIsExternalUnitTest::testUrlIsExternal in Drupal 7

Tests if each URL is external or not.

File

modules/simpletest/tests/common.test, line 423
Tests for common.inc functionality.

Class

UrlIsExternalUnitTest
Tests url_is_external().

Code

function testUrlIsExternal() {
  foreach ($this
    ->examples() as $path => $expected) {
    $this
      ->assertIdentical(url_is_external($path), $expected, $path);
  }
}