public function testInvalidImageString()
{
try {
$img = new Image();
$img->loadString('__INVALID__', true);
} catch (Exception $e) {
isTrue($e->getMessage() === 'Invalid image source.');
}
try {
$img = new Image('__INVALID__', true);
} catch (Exception $e) {
isTrue($e->getMessage() === 'Invalid image source.');
}
}