public function testGetValidator() { $factory = new UrlSchemeValidators(); $this->assertNotNull($factory->getValidator('http'), 'http'); $this->assertNotNull($factory->getValidator('https'), 'https'); $this->assertNotNull($factory->getValidator('ftp'), 'ftp'); $this->assertNotNull($factory->getValidator('irc'), 'irc'); $this->assertNotNull($factory->getValidator('mailto'), 'mailto'); $this->assertNotNull($factory->getValidator('telnet'), 'telnet'); $this->assertNull($factory->getValidator('notaprotocol'), 'notaprotocol'); }