function UrlIsExternalUnitTest::testUrlIsExternal

Tests if each URL is external or not.

File

modules/simpletest/tests/common.test, line 443

Class

UrlIsExternalUnitTest
Tests url_is_external().

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.