Development

Changeset 10186

You must first sign up to be able to contribute.

Changeset 10186

Show
Ignore:
Timestamp:
07/09/08 17:19:05 (2 months ago)
Author:
FabianLange
Message:

added some kind of test for mail_to encoding

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/test/unit/helper/UrlHelperTest.php

    r8839 r10186  
    4343} 
    4444 
    45 $t = new lime_test(32, new lime_output_color()); 
     45$t = new lime_test(33, new lime_output_color()); 
    4646 
    4747$context = sfContext::getInstance(); 
     
    120120$t->is(mail_to('webmaster@example.com'),'<a href="mailto:webmaster@example.com">webmaster@example.com</a>','mail_to with only given email works'); 
    121121$t->is(mail_to('webmaster@example.com', 'send us an email'),'<a href="mailto:webmaster@example.com">send us an email</a>','mail_to with given email and title works'); 
     122$t->isnt(mail_to('webmaster@example.com', 'encoded', array('encode' => true)),'<a href="mailto:webmaster@example.com">encoded</a>','mail_to with encoding works'); 
    122123 
    123124$t->is(mail_to('webmaster@example.com', '', array(), array('subject' => 'test subject', 'body' => 'test body')),'<a href="mailto:webmaster@example.com?subject=test+subject&amp;body=test+body">webmaster@example.com</a>', 'mail_to() works with given default values in array form');