Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: do not use perdu.com anymore - it's down 😭 #192

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down
96 changes: 94 additions & 2 deletions tests/Examples/CacheSimpleTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -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...