function testIsExternal() { $local = 'http://example.org'; $subdomain = 'http://cdn.example.org'; $external = 'http://upstatement.com'; $this->assertFalse(TimberURLHelper::is_external($local)); $this->assertFalse(TimberURLHelper::is_external($subdomain)); $this->assertTrue(TimberURLHelper::is_external($external)); }
/** * * * @return bool */ function is_external() { if ($this->type != 'custom') { return false; } return TimberURLHelper::is_external($this->url); }
/** * @deprecated */ static function is_external($url) { return TimberURLHelper::is_external($url); }