Add unit testing coverage for Laravel\HTML and improve setUp and tearDown for Form unit-test

Signed-off-by: crynobone <crynobone@gmail.com>
This commit is contained in:
crynobone
2012-11-06 22:33:29 +08:00
parent 6dc6b2b5ae
commit 0d8a4ffbdd
4 changed files with 254 additions and 0 deletions

View File

@@ -173,6 +173,8 @@ class HTML {
public static function link_to_asset($url, $title = null, $attributes = array(), $https = null)
{
$url = URL::to_asset($url, $https);
if (is_null($title)) $title = $url;
return '<a href="'.$url.'"'.static::attributes($attributes).'>'.static::entities($title).'</a>';
}