Getting coverage to 100% on these classes

Also found a bug in the Form class that would bork phone numbers with dashes in
them. Even though the Form class is going to go away eventually I wanted to fix
the issue.
This commit is contained in:
Joshua Sherman 2014-01-12 13:56:52 -05:00
parent 5ef3b58f53
commit faaefc1b82
6 changed files with 164 additions and 11 deletions

View file

@ -327,7 +327,7 @@ class Form extends Object
$additional .= ' class="' . $classes . '"';
}
return '<select id="' . $name . '" name="' . $name . '" class="' . $classes . '"' . $additional . '>' . $this->options($options, $selected) . '</select>';
return '<select id="' . $name . '" name="' . $name . '"' . $additional . '>' . $this->options($options, $selected) . '</select>';
}
// }}}
@ -629,6 +629,7 @@ class Form extends Object
}
else
{
$value = str_replace('-', '', $value);
$value = array(
'area_code' => substr($value, 0, 3),
'prefix' => substr($value, 3, 3),