public function testTweetRandomMessageWhenIsCalledShouldPostAMessageToTwitter() { $this->ifTwitterFeedReturns(self::TEST_STATUS_MESSAGE); $this->twitterClientMock->post("statuses/update", array("status" => self::TEST_STATUS_MESSAGE))->shouldBeCalled(); $this->sut->tweetRandomMessage(); $this->assertTrue(true); }
public function tweetRandomMessage() { $this->twitterClient->post('statuses/update', array('status' => $this->twitterFeed->getStatusMessage())); }