public function testInvalidKeyPassedToSetOptionsMethod() { $options = array( 'unknown' => array('val' => 1) ); $this->helper->__invoke()->setOptions($options); }
public function testEmailIsProperlyNormalized() { $this->assertEquals('*****@*****.**', $this->helper->__invoke('Example@Example.com ')->getEmail()); }
/** * Test if doctype is HTML */ public function testGravatarHTMLDoctype() { $object = new Gravatar(); $view = new View(); $view->doctype()->setDoctype(strtoupper("HTML5")); $object->setView($view); $this->assertRegExp('/[^\/]>$/', $this->_object->__invoke('*****@*****.**')->__toString()); }