public function setUp() { $curlbuilder = CurlBuilderMock::create($this); // Setup Pinterest $this->pinterest = new Pinterest("0", "0", $curlbuilder); $this->pinterest->auth->setOAuthToken("0"); }