[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 class media_isexternal_test extends DokuWikiTest { 4 5 6 public function test_external(){ 7 $this->assertTrue(media_isexternal('http://www.example.com/foo.png')); 8 $this->assertTrue(media_isexternal('https://www.example.com/foo.png')); 9 $this->assertTrue(media_isexternal('ftp://www.example.com/foo.png')); 10 $this->assertTrue(media_isexternal('hTTp://www.example.com/foo.png')); 11 $this->assertTrue(media_isexternal('hTTps://www.example.com/foo.png')); 12 $this->assertTrue(media_isexternal('Ftp://www.example.com/foo.png')); 13 } 14 15 public function test_internal(){ 16 $this->assertFalse(media_isexternal('wiki:logo.png')); 17 $this->assertFalse(media_isexternal('private:logo.png')); 18 $this->assertFalse(media_isexternal('ftp:private:logo.png')); 19 20 } 21 22 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body