diff --git a/tests/potx.test b/tests/potx.test
index 5294f6c..47a6c21 100644
--- a/tests/potx.test
+++ b/tests/potx.test
@@ -182,9 +182,10 @@ class PotxTestCase extends DrupalWebTestCase {
     $this->assertMsgIDContext('Installer string in context', 'Installer context');
     $this->assertMsgIDContext('Dynamic string in context', 'Dynamic context');
 
-    $this->assert(count($this->potx_status) == 2, t('2 error messages found'));
+    $this->assert(count($this->potx_status) == 3, t('3 error messages found'));
     $this->assert($this->potx_status[0][0] == $this->empty_error, t('First empty error found.'));
-    $this->assert($this->potx_status[1][0] == $this->empty_error, t('Second empty error found.'));
+    $this->assert($this->potx_status[1][0] == 'Unexpected ;', t('Unexpected semicolon found.'));
+    $this->assert($this->potx_status[2][0] == $this->empty_error, t('Second empty error found.'));
 
     $this->assertMsgID('PHP Syntax error gracefully handled');
   }
