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

Add filename paramenter log #4147

Merged

Conversation

facundocapua
Copy link
Contributor

@facundocapua facundocapua commented Apr 14, 2016

Reopening PR #2679

@facundocapua facundocapua force-pushed the add_filename_paramenter_log branch 3 times, most recently from eb77080 to cceab50 Compare April 14, 2016 06:34
@facundocapua facundocapua force-pushed the add_filename_paramenter_log branch from cceab50 to 67950c5 Compare April 14, 2016 07:11
* @return string
* @throws \InvalidArgumentException
*/
public function sanitizeFileName($fileName)
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be private. Don't think child classes need to access that, let alone other objects.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree with you... actually I prefer making methods protected, in case someone needs to overwrite the class but doesn't want to change the behaviour of this method.

I'm not sure how to make the proper test then, should those be integration test instead of unit tests? What do you think would be the proper approach?

Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just use reflection?

@facundocapua facundocapua force-pushed the add_filename_paramenter_log branch from 2d830ec to c364c4e Compare April 15, 2016 15:50
@mazhalai
Copy link
Contributor

mazhalai commented May 6, 2016

@fcapua-summa please sync with the develop branch and rerun travis builds.

@magento-team magento-team merged commit 14d5686 into magento:develop Jun 30, 2017
magento-team pushed a commit that referenced this pull request Jun 30, 2017
magento-engcom-team pushed a commit that referenced this pull request May 3, 2019
[pangolin] MQE-1536: Magento\Install\Test\TestCase\InstallTest is failing on php 7.0
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.

8 participants