From b94a490f145a426f4a21ac2f0997c01de26138cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Tue, 10 Oct 2023 11:16:55 +0200 Subject: [PATCH] =?UTF-8?q?test:=20do=20not=20use=20perdu.com=20anymore=20?= =?UTF-8?q?-=20it's=20down=20=F0=9F=98=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/cache.php | 2 +- tests/Examples/CacheSimpleTest.php.output.txt | 96 ++++++++++++++++++- 2 files changed, 95 insertions(+), 3 deletions(-) diff --git a/examples/cache.php b/examples/cache.php index 8dc212ee..e602fcf4 100644 --- a/examples/cache.php +++ b/examples/cache.php @@ -10,7 +10,7 @@ #[AsTask(description: 'Cache a simple call')] function simple(): void { - echo cache('my-key', fn () => strip_tags((string) file_get_contents('https://perdu.com/'))) . "\n"; + echo cache('my-key', fn () => strip_tags((string) file_get_contents('https://example.com/'))) . "\n"; // Should returns the same things echo cache('my-key', fn () => strip_tags((string) file_get_contents('https://estcequecestuntempsaraclette.fr/'))) . "\n"; } diff --git a/tests/Examples/CacheSimpleTest.php.output.txt b/tests/Examples/CacheSimpleTest.php.output.txt index 15f9af21..8011babc 100644 --- a/tests/Examples/CacheSimpleTest.php.output.txt +++ b/tests/Examples/CacheSimpleTest.php.output.txt @@ -1,2 +1,94 @@ -Vous Etes Perdu ?Perdu sur l'Internet ?Pas de panique, on va vous aider * -Vous Etes Perdu ?Perdu sur l'Internet ?Pas de panique, on va vous aider * + + + + Example Domain + + + + + + body { + background-color: #f0f0f2; + margin: 0; + padding: 0; + font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + + } + div { + width: 600px; + margin: 5em auto; + padding: 2em; + background-color: #fdfdff; + border-radius: 0.5em; + box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02); + } + a:link, a:visited { + color: #38488f; + text-decoration: none; + } + @media (max-width: 700px) { + div { + margin: 0 auto; + width: auto; + } + } + + + + + + Example Domain + This domain is for use in illustrative examples in documents. You may use this + domain in literature without prior coordination or asking for permission. + More information... + + + + + + + + Example Domain + + + + + + body { + background-color: #f0f0f2; + margin: 0; + padding: 0; + font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + + } + div { + width: 600px; + margin: 5em auto; + padding: 2em; + background-color: #fdfdff; + border-radius: 0.5em; + box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02); + } + a:link, a:visited { + color: #38488f; + text-decoration: none; + } + @media (max-width: 700px) { + div { + margin: 0 auto; + width: auto; + } + } + + + + + + Example Domain + This domain is for use in illustrative examples in documents. You may use this + domain in literature without prior coordination or asking for permission. + More information... + + + +