Exemplo n.º 1
0
 public function testInvalidKeyPassedToSetOptionsMethod()
 {
     $options = array(
         'unknown' => array('val' => 1)
     );
     $this->helper->__invoke()->setOptions($options);
 }
Exemplo n.º 2
0
 public function testEmailIsProperlyNormalized()
 {
     $this->assertEquals('*****@*****.**', $this->helper->__invoke('Example@Example.com ')->getEmail());
 }
Exemplo n.º 3
0
    /**
     * 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());
    }