You are here

public function UrlValidatorTest::getInvalidUrls in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/UrlValidatorTest.php, line 132

Class

UrlValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function getInvalidUrls() {
  return array(
    array(
      'google.com',
    ),
    array(
      '://google.com',
    ),
    array(
      'http ://google.com',
    ),
    array(
      'http:/google.com',
    ),
    array(
      'http://goog_le.com',
    ),
    array(
      'http://google.com::aa',
    ),
    array(
      'http://google.com:aa',
    ),
    array(
      'http://symfony.com?',
    ),
    array(
      'http://symfony.com#',
    ),
    array(
      'ftp://google.fr',
    ),
    array(
      'faked://google.fr',
    ),
    array(
      'http://127.0.0.1:aa/',
    ),
    array(
      'ftp://[::1]/',
    ),
    array(
      'http://[::1',
    ),
    array(
      'http://hello.☎/',
    ),
    array(
      'http://:password@symfony.com',
    ),
    array(
      'http://:password@@symfony.com',
    ),
    array(
      'http://username:passwordsymfony.com',
    ),
    array(
      'http://usern@me:password@symfony.com',
    ),
  );
}