public function testGravatarExists()
    {
        $api = new GravatarApi();

        $this->assertFalse($api->exists('*****@*****.**'));

        $this->assertTrue($api->exists('*****@*****.**'));
    }
Example #2
0
 /**
  * Returns true if a avatar could be found for the email
  *
  * @param string $email
  * @return boolean
  */
 public function exists($email)
 {
     return $this->api->exists($email);
 }