-
Notifications
You must be signed in to change notification settings - Fork 11
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
Remove deprecated warning on DebugClassLoader #22
Conversation
… it first, because Symfony\Component\Debug\DebugClassLoader is deprecated in Symfony 4.4
…ption when a definition in PHP-DI is required in Symfony DI
Switch to last version of phpunit Enable support of Symfony 5.*
Switch to last version of phpunit Enable support of Symfony 5.*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update!
I have added a few comments, once those are fixed let's merge 👍
@@ -25,7 +25,7 @@ class ContainerInteractionTest extends AbstractFunctionalTest | |||
/** | |||
* @test Get a Symfony entry from PHP-DI's container | |||
*/ | |||
public function phpdi_should_get_entries_from_symfony() | |||
public function phpdiShouldGetEntriesFromSymfony() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you restore the original name? (including in the other tests)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -27,6 +27,6 @@ public function testContainerAware() | |||
/** @var ContainerAwareController $class */ | |||
$class = $container->get(ContainerAwareController::class); | |||
|
|||
$this->assertSame($container, $class->container); | |||
$this::assertSame($container, $class->container); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These code-style changes are unrelated to the PR, could you revert them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assert method are static.
{ | ||
public function testHasFallback() | ||
{ | ||
$wrapper = new SymfonyContainerBridge(); | ||
|
||
$fallback = $this->getMockForAbstractClass(ContainerInterface::class); | ||
$fallback->expects($this->once()) | ||
$fallback->expects(self::once()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idem Once method are static.
Sorry, my mind bugged and i forgot to create branches by PR. Il will create them tomorow evening. |
I restored phpunit 4 and original test, I will push a new PR after the merge of this one :) |
I'm sorry there are too many changes in this PR, without explanations I have to assume they are unrelated. It's not possible to move forward at this time, I'll be closing this for now. |
I understand, no worries. Since then I have completely rework the behavior to run as bundle without having to overload the Symfony kernel. |
Thanks, you too! |
Hi,
This PR is about to support new DebugClass component of Symfony available in symfony/error-handler when it is available. (The legacy DebugClass is deprecated since 4.4).
Thanks