8000 [DependencyInjection] Fix tests of #18144 by HeahDude · Pull Request #18422 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[DependencyInjection] Fix tests of #18144 #18422

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

Closed
wants to merge 2 commits into from

Conversation

HeahDude
Copy link
Contributor
@HeahDude HeahDude commented Apr 3, 2016
Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets ~
License MIT
Doc PR ~

@HeahDude HeahDude force-pushed the fix/test-autowiring branch 3 times, most recently from 5b0da22 to b524c93 Compare April 3, 2016 18:39
@HeahDude
Copy link
Contributor Author
HeahDude commented Apr 3, 2016

@nicolas-grekas Should be green now :)

@HeahDude HeahDude force-pushed the fix/test-autowiring branch from b524c93 to d7cf9ee Compare April 3, 2016 18:44
@HeahDude HeahDude force-pushed the fix/test-autowiring branch from d7cf9ee to 85d4ac4 Compare April 3, 2016 18:45
@HeahDude
Copy link
Contributor Author
HeahDude commented Apr 3, 2016

If it goes in master we could use finally, right ?

@HeahDude
Copy link
Contributor Author
HeahDude commented Apr 3, 2016

Ok failure unrelated!

@HeahDude
Copy link
Contributor Author
HeahDude commented Apr 3, 2016

Apparently hhvm does not like finally... I revert that.

@HeahDude HeahDude force-pushed the fix/test-autowiring branch from dd9836b to 85d4ac4 Compare April 3, 2016 20:59
@HeahDude HeahDude force-pushed the fix/test-autowiring branch from c86595b to fdbbb1a Compare April 4, 2016 02:10
@nicolas-grekas
Copy link
Member

👍

@nicolas-grekas nicolas-grekas changed the title fix tests of #18144 [DependencyInjection] Fix tests of #18144 Apr 4, 2016
@nicolas-grekas
Copy link
Member

Thank you @HeahDude.

@nicolas-grekas
Copy link
Member

@weaverryan @dunglas I merged this one to make tests green again, please submit a PR if anything is wrong here (with test case :) )

}

return AutowirePass::createResourceForClass($reflectionClass);
return @filemtime($this->filePath) <= $timestamp;
Copy link
Member

Choose a reason for hiding this comment

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

@HeahDude thanks for fixing the test failure on #18144 - I didn't realize I had left an error!

But, this is wrong! This simplifies this resource down to be basically identical to the SelfCheckingResourceInterface.
The original last line was a mistake - I added a bug in my last commit - this was the mistake: 49271e8#diff-04e2904117929f6ffe784d5be3cb1103R49

So, this should be reverted, but and the last line corrected to be:

return AutowirePass::createResourceForClass($reflectionClass); == $this;

Could you make a PR for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@weaverryan Yes, I tried to figure out what to do, I was not sure about that "easy" way :)

Thanks for the lead, I'm on it!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@weaverryan Is there anyway to add a test for that ?

fabpot added a commit that referenced this pull request Apr 14, 2016
This PR was merged into the 3.1-dev branch.

Discussion
----------

fix Autowiring tests of #18144

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| Tests pass?   | yes
| Fixed issue | #18422 (comment)
| License       | MIT

Commits
-------

0cbf04a [DI] fix Autowiring tests of #18144
symfony-splitter pushed a commit to symfony/dependency-injection that referenced this pull request Apr 14, 2016
This PR was merged into the 3.1-dev branch.

Discussion
----------

fix Autowiring tests of #18144

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| Tests pass?   | yes
| Fixed issue | symfony/symfony#18422 (comment)
| License       | MIT

Commits
-------

0cbf04a [DI] fix Autowiring tests of #18144
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0