Dropped gravatar method

Seems I had a method in the string class that referenced the now removed
gravatar API wrapper. Dropped the method and the associated test.
This commit is contained in:
Josh Sherman 2014-09-24 07:24:56 -04:00
parent 60ab001833
commit 1718bc27a6
2 changed files with 0 additions and 35 deletions

View file

@ -44,25 +44,6 @@ class String
return preg_replace('/^(\d{3})(\d{3})(.+)$/', $replacement, $number);
}
// }}}
// {{{ Generate Gravatar Hash
/**
* Generate Gravatar Hash
*
* Generates a hash from the passed string that can then be used for
* fetching an avatar from Gravatar.com
*
* @deprecated
* @static
* @param string $string string to hash, should be an email address
* @return string resulting hash
*/
public static function generateGravatarHash($string)
{
return API_Gravatar::hash($string);
}
// }}}
// {{{ Generate Slug

View file

@ -25,22 +25,6 @@ class StringTest extends PHPUnit_Framework_TestCase
];
}
/**
* @dataProvider providerGenerateGravatarHash
*/
public function testGenerateGravatarHash($a, $b)
{
$this->assertEquals(String::generateGravatarHash($a), $b);
}
public function providerGenerateGravatarHash()
{
return [
['foo@bar.com', 'f3ada405ce890b6f8204094deb12d8a8'],
['FOO@BAR.COM', 'f3ada405ce890b6f8204094deb12d8a8'],
];
}
public function testIsEmpty()
{
$this->assertTrue(String::isEmpty(''));