Skip to content

Comments

Leverage PSR-4 to provide a shallower tree#138

Closed
greg0ire wants to merge 1 commit intodoctrine:1.5from
greg0ire:shallow_tree
Closed

Leverage PSR-4 to provide a shallower tree#138
greg0ire wants to merge 1 commit intodoctrine:1.5from
greg0ire:shallow_tree

Conversation

@greg0ire
Copy link
Member

@greg0ire greg0ire commented Jan 21, 2018

This should make fuzzy matchers more efficient.

beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true"
bootstrap="vendor/autoload.php"
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm sure this is need it but I'm not sure why. Or rather, I'm not sure why it worked before. It's as if phpunit assumed psr 0

Copy link
Member

@lcobucci lcobucci Jan 21, 2018

Choose a reason for hiding this comment

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

Not needed when PHPUnit is executed from local composer installation (as project dependency)

@greg0ire greg0ire mentioned this pull request Jan 21, 2018
This should make fuzzy matchers more efficient.
@greg0ire
Copy link
Member Author

If you are ok with this I might do the same on other Doctrine libs.

Copy link
Member

@lcobucci lcobucci 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 your effort but the Doctrine team voted against PSR-4 and also decided to not apply the "shallower tree" in any of our projects.

beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true"
bootstrap="vendor/autoload.php"
Copy link
Member

@lcobucci lcobucci Jan 21, 2018

Choose a reason for hiding this comment

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

Not needed when PHPUnit is executed from local composer installation (as project dependency)

@Ocramius
Copy link
Member

Ocramius commented Jan 21, 2018 via email

@greg0ire greg0ire closed this Jan 22, 2018
@greg0ire greg0ire deleted the shallow_tree branch January 22, 2018 07:20
@greg0ire
Copy link
Member Author

Closing then

@mvorisek
Copy link

2021 to rethink this?

@greg0ire
Copy link
Member Author

I didn't follow how things evolved, but I noticed that the DBAL does use a shallow tree since 3.0.x so maybe this might be reconsidered indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants