Ejemplo n.º 1
0
 public function testSetAttribsWithSrcKey()
 {
     $email = '*****@*****.**';
     $this->helper->setEmail($email);
     $this->helper->setAttribs(array('class' => 'gravatar', 'src' => 'http://example.com', 'id' => 'gravatarID'));
     $this->assertRegExp('#src="http://www.gravatar.com/avatar/[a-z0-9]{32}.+"#', $this->helper->getImgTag());
 }
Ejemplo n.º 2
0
    public function testSetAttribsWithSrcKey()
    {
        $email = '*****@*****.**';
        $this->_object->setEmail($email);
        $this->_object->setAttribs(array(
            'class' => 'gravatar',
            'src'   => 'http://example.com',
            'id'    => 'gravatarID',
        ));

        $this->assertRegExp('/src="http:\/\/www.gravatar.com\/avatar\/[a-z0-9]{32}.+"/',
                            $this->_object->getImgTag());
    }