More tests for the Gravatar class
Trying to cover all of the bases.
This commit is contained in:
parent
74611b9e74
commit
f9a3311087
1 changed files with 16 additions and 0 deletions
|
@ -62,6 +62,22 @@ class API_Gravatar_Test extends PHPUnit_Framework_TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testForce()
|
||||||
|
{
|
||||||
|
$this->assertEquals(
|
||||||
|
'<img src="http://www.gravatar.com/avatar/f3ada405ce890b6f8204094deb12d8a8?s=80&d=&r=g&f=y">',
|
||||||
|
API_Gravatar::img('foo@bar.com', 80, 'gravatar', 'g', true)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testSecure()
|
||||||
|
{
|
||||||
|
$this->assertEquals(
|
||||||
|
'<img src="https://secure.gravatar.com/avatar/f3ada405ce890b6f8204094deb12d8a8?s=80&d=&r=g">',
|
||||||
|
API_Gravatar::img('foo@bar.com', 80, 'gravatar', 'g', false, true)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public function testImg()
|
public function testImg()
|
||||||
{
|
{
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue