Development

Changeset 10196

You must first sign up to be able to contribute.

Changeset 10196

Show
Ignore:
Timestamp:
07/10/08 05:50:41 (2 years ago)
Author:
dwhittle
Message:

dwhittle: merged changes to branch

Files:

Legend:

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

    r8851 r10196  
    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'); 
  • branches/dwhittle/1.1/test/unit/helper/UrlHelperTest.php

    r9326 r10196  
    3838} 
    3939 
    40 $t = new lime_test(37, new lime_output_color()); 
     40$t = new lime_test(38, new lime_output_color()); 
    4141 
    4242$context = sfContext::getInstance(array('controller' => 'myController', 'request' => 'myRequest')); 
     
    125125$t->is(mail_to('webmaster@example.com'),'<a href="mailto:webmaster@example.com">webmaster@example.com</a>','mail_to with only given email works'); 
    126126$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'); 
    127128 
    128129$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'); 
  • branches/dwhittle/1.2/test/unit/helper/UrlHelperTest.php

    r9325 r10196  
    3838} 
    3939 
    40 $t = new lime_test(37, new lime_output_color()); 
     40$t = new lime_test(38, new lime_output_color()); 
    4141 
    4242$context = sfContext::getInstance(array('controller' => 'myController', 'request' => 'myRequest')); 
     
    125125$t->is(mail_to('webmaster@example.com'),'<a href="mailto:webmaster@example.com">webmaster@example.com</a>','mail_to with only given email works'); 
    126126$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'); 
    127128 
    128129$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'); 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.