/** * @test */ public function tokenGetMatchesSetTest() { $fakeToken = "aFakeToken98qher897qhe7rygq83yg"; $this->api->setAccessToken($fakeToken); $retrievedToken = $this->api->getAccessToken(); $this->assertTrue($fakeToken == $retrievedToken); }
/** * Get the current user's wall feed */ public function wallfeedAction() { // Set this method to not use templating $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); // Get the Data $feed = $this->api->getWallFeed(); // Send the Response $this->getResponse()->setHeader(Zend_Http_Client::CONTENT_TYPE, "application/json")->clearBody(); echo $feed; }