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

Appearance settings

[PhpUnitBridge] Remove calls to deprecated function assertAttributeX #32923

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

Merged
merged 1 commit into from
Aug 4, 2019

Conversation

jderusse
Copy link
Member

@jderusse jderusse commented Aug 4, 2019

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #32844
License MIT
Doc PR NA

This PR remove unecessary call to assertAttribute and replace assertAttributeX by Reflection when no alternative is available.

continue;
}
$property = $reflection->getProperty($property);
$property->setAccessible(true);
Copy link
Member Author

@jderusse jderusse Aug 4, 2019

Choose a reason for hiding this comment

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

I don't see how to keep the Test without reflection. (unless refactoring the way DSN is parsed or the connection is initialized, but it's not necessary IMHO)

@jderusse jderusse force-pushed the deprec-assertAttribute branch from d68dd96 to d098c11 Compare August 4, 2019 09:26
@jderusse jderusse changed the title [PhpUnitBridge] Remove calls to deprecated function assertAttributeX WIP [PhpUnitBridge] Remove calls to deprecated function assertAttributeX Aug 4, 2019
@jderusse jderusse changed the title WIP [PhpUnitBridge] Remove calls to deprecated function assertAttributeX [PhpUnitBridge] Remove calls to deprecated function assertAttributeX Aug 4, 2019
@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Aug 4, 2019
@nicolas-grekas
Copy link
Member

Thank you @jderusse.

@nicolas-grekas nicolas-grekas merged commit d098c11 into symfony:3.4 Aug 4, 2019
nicolas-grekas added a commit that referenced this pull request Aug 4, 2019
…rtAttributeX (jderusse)

This PR was merged into the 3.4 branch.

Discussion
----------

[PhpUnitBridge] Remove calls to deprecated function assertAttributeX

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #32844
| License       | MIT
| Doc PR        | NA

This PR remove unecessary call to assertAttribute and replace assertAttributeX by Reflection when no alternative is available.

Commits
-------

d098c11 Remove calls to deprecated function assertAttributeX
@jderusse jderusse deleted the deprec-assertAttribute branch August 8, 2019 11:35
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.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.