diff --git a/tests/potx.test b/tests/potx.test
index 5294f6c..5712dfa 100644
--- a/tests/potx.test
+++ b/tests/potx.test
@@ -145,6 +145,7 @@ class PotxTestCase extends DrupalWebTestCase {
     $this->assertMsgID('This is a test string.');
     $this->assertMsgID('test watchdog type');
     $this->assertMsgID('My watchdog message');
+    $this->assertMsgID('PHP Syntax error gracefully handled');
 
     // No support for hook_perm() anymore. t() in hook_permissions().
     $this->assertNoMsgID('test potx permission');
@@ -182,11 +183,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->assertMsgID('PHP Syntax error gracefully handled');
+    $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.'));
   }
 
   public function testDrupal8LanguageManager() {
