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:
parent
60ab001833
commit
1718bc27a6
2 changed files with 0 additions and 35 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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(''));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue