Merge pull request #13660 from seamuslee001/5.11
[civicrm-core.git] / tests / phpunit / CRM / Core / Smarty / plugins / CrmScopeTest.php
index d5255c8d2a3c01b5c7943b67e838d03f02da40b3..79ddcbcff4d137d7679d10e14e4f414f0506ea1b 100644 (file)
@@ -1,9 +1,8 @@
 <?php
 
-require_once 'CiviTest/CiviUnitTestCase.php';
-
 /**
  * Class CRM_Core_Smarty_plugins_CrmScopeTest
+ * @group headless
  */
 class CRM_Core_Smarty_plugins_CrmScopeTest extends CiviUnitTestCase {
   public function setUp() {
@@ -26,15 +25,23 @@ class CRM_Core_Smarty_plugins_CrmScopeTest extends CiviUnitTestCase {
     $cases[] = array('x=1', '{crmScope x=1}x={$x}{/crmScope}');
     $cases[] = array('x=1', '{$x}{crmScope x=1}x={$x}{/crmScope}{$x}');
     $cases[] = array('x=1 x=2 x=1', '{crmScope x=1}x={$x} {crmScope x=2}x={$x}{/crmScope} x={$x}{/crmScope}');
-    $cases[] = array('x=1 x=2 x=3 x=2 x=1', '{crmScope x=1}x={$x} {crmScope x=2}x={$x} {crmScope x=3}x={$x}{/crmScope} x={$x}{/crmScope} x={$x}{/crmScope}');
+    $cases[] = array(
+      'x=1 x=2 x=3 x=2 x=1',
+      '{crmScope x=1}x={$x} {crmScope x=2}x={$x} {crmScope x=3}x={$x}{/crmScope} x={$x}{/crmScope} x={$x}{/crmScope}',
+    );
     $cases[] = array('x=1,y=9', '{crmScope x=1 y=9}x={$x},y={$y}{/crmScope}');
-    $cases[] = array('x=1,y=9 x=1,y=8 x=1,y=9', '{crmScope x=1 y=9}x={$x},y={$y} {crmScope y=8}x={$x},y={$y}{/crmScope} x={$x},y={$y}{/crmScope}');
+    $cases[] = array(
+      'x=1,y=9 x=1,y=8 x=1,y=9',
+      '{crmScope x=1 y=9}x={$x},y={$y} {crmScope y=8}x={$x},y={$y}{/crmScope} x={$x},y={$y}{/crmScope}',
+    );
     $cases[] = array('x=', 'x={$x}');
     return $cases;
   }
 
   /**
    * @dataProvider scopeCases
+   * @param $expected
+   * @param $input
    */
   public function testBlank($expected, $input) {
     $smarty = CRM_Core_Smarty::singleton();