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

Remove deprecated warning on DebugClassLoader #22

Closed
wants to merge 11 commits into from
Closed

Remove deprecated warning on DebugClassLoader #22

wants to merge 11 commits into from

Conversation

frenchcomp
Copy link
Contributor

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

… 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.*
Copy link
Member

@mnapoli mnapoli left a 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()
Copy link
Member

@mnapoli mnapoli Jul 18, 2020

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)

Copy link
Contributor Author

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);
Copy link
Member

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?

Copy link
Contributor Author

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())
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

Copy link
Contributor Author

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.

@frenchcomp
Copy link
Contributor Author

Sorry, my mind bugged and i forgot to create branches by PR. Il will create them tomorow evening.

@frenchcomp
Copy link
Contributor Author

I restored phpunit 4 and original test, I will push a new PR after the merge of this one :)

@mnapoli
Copy link
Member

mnapoli commented Nov 14, 2020

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.

@mnapoli mnapoli closed this Nov 14, 2020
@frenchcomp
Copy link
Contributor Author

I understand, no worries. Since then I have completely rework the behavior to run as bundle without having to overload the Symfony kernel.
Have a nice day :)

@mnapoli
Copy link
Member

mnapoli commented Nov 14, 2020

Thanks, you too!

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.

2 participants