introduced property based unit tests using the eris library, found an unhandled error case (empty string) in the Vizhash library and handled it
This commit is contained in:
@@ -80,7 +80,7 @@ class Vizhash16x16
|
||||
*/
|
||||
public function generate($text)
|
||||
{
|
||||
if (!function_exists('gd_info')) {
|
||||
if (!function_exists('gd_info') || strlen($text) < 1) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user