1 common.test | UrlIsExternalUnitTest::testUrlIsExternal() |
Tests if each URL is external or not.
File
- core/
modules/ simpletest/ tests/ common.test, line 441 - 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);
}
}