From 4b59c79fed66537ba62d3c0a64e83274525c34a8 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 12 Mar 2012 23:27:24 +0000 Subject: [PATCH] handle test error --- contrib/link_image/test.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/link_image/test.php b/contrib/link_image/test.php index e0f8cb52..83f641f7 100644 --- a/contrib/link_image/test.php +++ b/contrib/link_image/test.php @@ -10,8 +10,10 @@ class LinkImageTest extends ShimmieWebTestCase { $matches = array(); preg_match("#value='(http://.*(/|%2F)post(/|%2F)view(/|%2F)[0-9]+)'#", $raw, $matches); $this->assertTrue(count($matches) > 0); - $this->get($matches[1]); - $this->assert_title("Image $image_id: pie"); + if($matches) { + $this->get($matches[1]); + $this->assert_title("Image $image_id: pie"); + } $this->log_out();