/** * No reason to mock the cURL wrapper library at this point, so I'm just going to test getters and setters * even though it's redundant. */ public function testCurlWrapperDependency() { $ggTrackerApi = new GGTracker(); $curlWrapper = new \Curl(); $ggTrackerApi->setCurlWrapper($curlWrapper); $this->assertEquals($curlWrapper, $ggTrackerApi->getCurlWrapper()); }
/** * @param $url * @dataProvider validDataProvider */ public function testValidData($url) { $response = $this->ggTrackerApi->retrieveData($url); $this->assertNotNull($response); $this->assertGreaterThan(0, strlen($response)); }