Changeset 10188
- Timestamp:
- 07/09/08 17:20:35 (1 year ago)
- Files:
-
- branches/1.2/test/unit/helper/UrlHelperTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/test/unit/helper/UrlHelperTest.php
r9325 r10188 38 38 } 39 39 40 $t = new lime_test(3 7, new lime_output_color());40 $t = new lime_test(38, new lime_output_color()); 41 41 42 42 $context = sfContext::getInstance(array('controller' => 'myController', 'request' => 'myRequest')); … … 125 125 $t->is(mail_to('webmaster@example.com'),'<a href="mailto:webmaster@example.com">webmaster@example.com</a>','mail_to with only given email works'); 126 126 $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'); 127 $t->isnt(mail_to('webmaster@example.com', 'encoded', array('encode' => true)),'<a href="mailto:webmaster@example.com">encoded</a>','mail_to with encoding works'); 127 128 128 129 $t->is(mail_to('webmaster@example.com', '', array(), array('subject' => 'test subject', 'body' => 'test body')),'<a href="mailto:webmaster@example.com?subject=test+subject&body=test+body">webmaster@example.com</a>', 'mail_to() works with given default values in array form');

