diff --git a/tests/Drupal/Semantics/FunctionTUnitTest.inc b/tests/Drupal/Semantics/FunctionTUnitTest.inc
index 6379f4ede2737a2d0a0a2900c44c49c5e6fc529b..02aff86c8d3e06279e2e4846f2b78273b0dbc96c 100644
--- a/tests/Drupal/Semantics/FunctionTUnitTest.inc
+++ b/tests/Drupal/Semantics/FunctionTUnitTest.inc
@@ -20,7 +20,7 @@ $x = '<p>' . t('Test') . '</p><p>More text.</p>';
 $x = t('Test') . ' (disabled)';
 
 class Test {
-  const FOO='bar';
+  const FOO = 'bar';
 
   public function doSomething() {
     return $this->t('This string should avoid backslashes for \'');
@@ -42,7 +42,6 @@ class Test {
 }
 
 // Using constants in t() should be allowed.
-const FOO2='bar2';
+const FOO2 = 'bar2';
 $x = t(FOO2);
 $x = t(Test::FOO);
-