Inheritance: extends BaseType
 public function testUrlType()
 {
     $url = new UrlType();
     ok($url->test('http://t'));
     ok($url->test('http://t.c'));
     $this->assertFalse($url->test('t.c'));
 }
Exemple #2
0
 public function testUrlType()
 {
     $url = new UrlType();
     $this->assertTrue($url->test('http://t'));
     $this->assertTrue($url->test('http://t.c'));
     $this->assertFalse($url->test('t.c'));
     $this->assertEquals('http://t.c', $url->parse('http://t.c'));
 }