diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTest.php index 5763345afd..f04372c542 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTest.php @@ -2396,7 +2396,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest public function testUrlWithDefaultProtocol() { - $url = 'http://www.google.com?foo1=bar1&foo2=bar2'; + $url = 'http://www.example.com?foo1=bar1&foo2=bar2'; $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\UrlType', $url, ['default_protocol' => 'http']); $this->assertWidgetMatchesXpath($form->createView(), ['attr' => ['class' => 'my&class']], @@ -2404,7 +2404,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest [@type="text"] [@name="name"] [@class="my&class form-control"] - [@value="http://www.google.com?foo1=bar1&foo2=bar2"] + [@value="http://www.example.com?foo1=bar1&foo2=bar2"] [@inputmode="url"] ' ); @@ -2412,7 +2412,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest public function testUrlWithoutDefaultProtocol() { - $url = 'http://www.google.com?foo1=bar1&foo2=bar2'; + $url = 'http://www.example.com?foo1=bar1&foo2=bar2'; $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\UrlType', $url, ['default_protocol' => null]); $this->assertWidgetMatchesXpath($form->createView(), ['attr' => ['class' => 'my&class']], @@ -2420,7 +2420,7 @@ abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest [@type="url"] [@name="name"] [@class="my&class form-control"] - [@value="http://www.google.com?foo1=bar1&foo2=bar2"] + [@value="http://www.example.com?foo1=bar1&foo2=bar2"] ' ); } diff --git a/src/Symfony/Component/BrowserKit/Tests/CookieTest.php b/src/Symfony/Component/BrowserKit/Tests/CookieTest.php index 694b164851..1404da9a1c 100644 --- a/src/Symfony/Component/BrowserKit/Tests/CookieTest.php +++ b/src/Symfony/Component/BrowserKit/Tests/CookieTest.php @@ -44,10 +44,10 @@ class CookieTest extends TestCase return [ ['foo=bar; path=/'], ['foo=bar; path=/foo'], - ['foo=bar; domain=google.com; path=/'], + ['foo=bar; domain=example.com; path=/'], ['foo=bar; domain=example.com; path=/; secure', 'https://example.com/'], ['foo=bar; path=/; httponly'], - ['foo=bar; domain=google.com; path=/foo; secure; httponly', 'https://google.com/'], + ['foo=bar; domain=example.com; path=/foo; secure; httponly', 'https://example.com/'], ['foo=bar=baz; path=/'], ['foo=bar%3Dbaz; path=/'], ]; diff --git a/src/Symfony/Component/Form/Tests/AbstractLayoutTest.php b/src/Symfony/Component/Form/Tests/AbstractLayoutTest.php index 8fc2c4002e..0165552f73 100644 --- a/src/Symfony/Component/Form/Tests/AbstractLayoutTest.php +++ b/src/Symfony/Component/Form/Tests/AbstractLayoutTest.php @@ -2189,14 +2189,14 @@ abstract class AbstractLayoutTest extends FormIntegrationTestCase public function testUrlWithDefaultProtocol() { - $url = 'http://www.google.com?foo1=bar1&foo2=bar2'; + $url = 'http://www.example.com?foo1=bar1&foo2=bar2'; $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\UrlType', $url, ['default_protocol' => 'http']); $this->assertWidgetMatchesXpath($form->createView(), [], '/input [@type="text"] [@name="name"] - [@value="http://www.google.com?foo1=bar1&foo2=bar2"] + [@value="http://www.example.com?foo1=bar1&foo2=bar2"] [@inputmode="url"] ' ); @@ -2204,14 +2204,14 @@ abstract class AbstractLayoutTest extends FormIntegrationTestCase public function testUrlWithoutDefaultProtocol() { - $url = 'http://www.google.com?foo1=bar1&foo2=bar2'; + $url = 'http://www.example.com?foo1=bar1&foo2=bar2'; $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\UrlType', $url, ['default_protocol' => null]); $this->assertWidgetMatchesXpath($form->createView(), [], '/input [@type="url"] [@name="name"] - [@value="http://www.google.com?foo1=bar1&foo2=bar2"] + [@value="http://www.example.com?foo1=bar1&foo2=bar2"] ' ); } diff --git a/src/Symfony/Component/HttpKernel/Tests/ClientTest.php b/src/Symfony/Component/HttpKernel/Tests/ClientTest.php index 86a51ce765..b141c16d64 100644 --- a/src/Symfony/Component/HttpKernel/Tests/ClientTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/ClientTest.php @@ -39,8 +39,8 @@ class ClientTest extends TestCase $this->assertEquals('Request: /', $client->getResponse()->getContent(), '->doRequest() uses the request handler to make the request'); $this->assertEquals('www.example.com', $client->getRequest()->getHost(), '->doRequest() uses the request handler to make the request'); - $client->request('GET', 'http://www.example.com/?parameter=http://google.com'); - $this->assertEquals('http://www.example.com/?parameter='.urlencode('http://google.com'), $client->getRequest()->getUri(), '->doRequest() uses the request handler to make the request'); + $client->request('GET', 'http://www.example.com/?parameter=http://example.com'); + $this->assertEquals('http://www.example.com/?parameter='.urlencode('http://example.com'), $client->getRequest()->getUri(), '->doRequest() uses the request handler to make the request'); } public function testGetScript() diff --git a/src/Symfony/Component/Validator/Tests/Constraints/UrlValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/UrlValidatorTest.php index e54a936685..ab845d45db 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/UrlValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/UrlValidatorTest.php @@ -67,11 +67,11 @@ class UrlValidatorTest extends ConstraintValidatorTestCase { return [ ['http://a.pl'], - ['http://www.google.com'], - ['http://www.google.com.'], - ['http://www.google.museum'], - ['https://google.com/'], - ['https://google.com:80/'], + ['http://www.example.com'], + ['http://www.example.com.'], + ['http://www.example.museum'], + ['https://example.com/'], + ['https://example.com:80/'], ['http://www.example.coop/'], ['http://www.test-example.com/'], ['http://www.symfony.com/'], @@ -148,15 +148,15 @@ class UrlValidatorTest extends ConstraintValidatorTestCase public function getInvalidUrls() { return [ - ['google.com'], - ['://google.com'], - ['http ://google.com'], - ['http:/google.com'], - ['http://goog_le.com'], - ['http://google.com::aa'], - ['http://google.com:aa'], - ['ftp://google.fr'], - ['faked://google.fr'], + ['example.com'], + ['://example.com'], + ['http ://example.com'], + ['http:/example.com'], + ['http://examp_le.com'], + ['http://example.com::aa'], + ['http://example.com:aa'], + ['ftp://example.fr'], + ['faked://example.fr'], ['http://127.0.0.1:aa/'], ['ftp://[::1]/'], ['http://[::1'], @@ -189,7 +189,7 @@ class UrlValidatorTest extends ConstraintValidatorTestCase public function getValidCustomUrls() { return [ - ['ftp://google.com'], + ['ftp://example.com'], ['file://127.0.0.1'], ['git://[::1]/'], ]; diff --git a/src/Symfony/Component/VarDumper/Tests/Caster/SplCasterTest.php b/src/Symfony/Component/VarDumper/Tests/Caster/SplCasterTest.php index 984b340c6d..a146a2f6b9 100644 --- a/src/Symfony/Component/VarDumper/Tests/Caster/SplCasterTest.php +++ b/src/Symfony/Component/VarDumper/Tests/Caster/SplCasterTest.php @@ -50,12 +50,12 @@ SplFileInfo { %A} EOTXT ], - ['https://google.com/about', <<<'EOTXT' + ['https://example.com/about', <<<'EOTXT' SplFileInfo { -%Apath: "https://google.com" +%Apath: "https://example.com" filename: "about" basename: "about" - pathname: "https://google.com/about" + pathname: "https://example.com/about" extension: "" realPath: false %A}