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:
El RIDO
2017-02-26 11:21:52 +01:00
parent db307c3a77
commit 59adfc1962
4 changed files with 38 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ class Vizhash16x16
*/
public function generate($text)
{
if (!function_exists('gd_info')) {
if (!function_exists('gd_info') || strlen($text) < 1) {
return '';
}