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

Don't test the protected/private method #43

Closed
agiuliano opened this issue Jun 5, 2013 · 12 comments
Closed

Don't test the protected/private method #43

agiuliano opened this issue Jun 5, 2013 · 12 comments

Comments

@agiuliano
Copy link
Member

As Sebastian himself says, the private methods have to be tested indirectly

@odino
Copy link
Member

odino commented Jun 5, 2013

even the protected ones ;)

@liuggio
Copy link
Member

liuggio commented Jun 5, 2013

great, but what's the task to be done?

@agiuliano
Copy link
Member Author

the createImage function for example has to be tested indirectly by testing all the public function that use it and passing them a plenty of input that test the correct work of createImage too

@odino yep, I mean protected and private ;)

@leopro
Copy link
Member

leopro commented Jun 5, 2013

@agiuliano imho a comment directly on code is better ;-)

@agiuliano
Copy link
Member Author

@leopro you're right!

@liuggio
Copy link
Member

liuggio commented Sep 23, 2013

Could we close this?

@agiuliano
Copy link
Member Author

@liuggio
Copy link
Member

liuggio commented Sep 24, 2013

fair enough...
there's another smell on tests: use PUGX\StatsBundle\Test\StatsFunctionalTest; on https://github.com/PUGX/badge-poser/blob/master/src/PUGX/BadgeBundle/Tests/Controller/PageControllerTest.php
we have coupled those bundles... maybe we could clean it.

@liuggio
Copy link
Member

liuggio commented Nov 7, 2013

I have decoupled those tests #84

still as @agiuliano said some cleaning are needed

@cirpo
Copy link
Contributor

cirpo commented Jul 8, 2015

@agiuliano such as? I would love to work on this :)

@liuggio
Copy link
Member

liuggio commented Jul 8, 2015

@cirpo we would love you

@JellyBellyDev
Copy link
Member

I believe that this issue can be closed. thank you!

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

No branches or pull requests

6 participants