Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

HttpCache: New test for revalidating responses with an expired TTL#22099

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
mpdude wants to merge4 commits intosymfony:2.7fromwebfactory:new-test-http-revalidate-27
Closed

HttpCache: New test for revalidating responses with an expired TTL#22099

mpdude wants to merge4 commits intosymfony:2.7fromwebfactory:new-test-http-revalidate-27

Conversation

@mpdude
Copy link
Contributor

QA
Branch?2.7
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

See#22035, in particularthis and the following comments.

sleep(15);// expire the cache

$this->setNextResponse(304,array(),'',function (Request$request,Response$response)use ($time) {
$this->assertEquals($time->format(DATE_RFC2822),$request->headers->get('IF_MODIFIED_SINCE'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

That does not work on PHP 5.3. You should create a$that var outside and pass it viause

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I always wonder whether you know this off by heart, or if the failing tests remind you of it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

we all do the same mistake, so I don't need the test to fail to spot this kind of errors :)

Copy link
ContributorAuthor

@mpdudempdudeMar 21, 2017
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Fixed. Somehow I know this is will happen to me again. 🤔

@fabpot
Copy link
Member

Thank you@mpdude.

fabpot added a commit that referenced this pull requestMar 21, 2017
…xpired TTL (mpdude)This PR was squashed before being merged into the 2.7 branch (closes#22099).Discussion----------HttpCache: New test for revalidating responses with an expired TTL| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |See#22035, in particular [this and the following comments](#22035 (comment)).Commits-------067ab52 HttpCache: New test for revalidating responses with an expired TTL
@fabpotfabpot closed thisMar 21, 2017
@mpdudempdude deleted the new-test-http-revalidate-27 branchMarch 21, 2017 23:19
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot left review comments

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@mpdude@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp