public function testServiceUrl() { $service = new Service(array('size' => 999, 'rating' => Service::RATING_PG, 'default' => Service::DEFAULT_MM)); $url = $service->get('*****@*****.**', array('size' => 666, 'default' => Service::DEFAULT_MI, 'secure' => true)); $this->assertContains('https://', $url); $this->assertContains('r=pg', $url); $this->assertContains('s=666', $url); $this->assertContains('d=monsterid', $url); }
/** * * @param string $email * @param array $options * @return string */ public function get($email, array $options = array()) { return $this->service->get($email, $options); }