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

part 8 - test for twitterfeed #6

Open
Lechus opened this issue Oct 18, 2013 · 2 comments
Open

part 8 - test for twitterfeed #6

Lechus opened this issue Oct 18, 2013 · 2 comments

Comments

@Lechus
Copy link

Lechus commented Oct 18, 2013

Hi,
I'm newbie to TDD so my appologize for that question, but shouldn't we write test for Twitter like for Facebook?
public function testSocialFeedCanBeInstantiated() { $t = M::mock('Example\FeedReaders\FacebookFeedReader'); $s = new SocialFeed($t); }

public function testSocialFeedCanBeInstantiated2() { $t = M::mock('Example\FeedReaders\TwitterFeedReader'); $s = new SocialFeed($t); }

@youhackme
Copy link

No, we should not. Why? Because they are third-party libraries with their own test suites.

@youhackme
Copy link

whoops just realised this is a really old issue!

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

No branches or pull requests

2 participants