CRM-12595 fix formatting in tests files
[civicrm-core.git] / tests / phpunit / CRM / Utils / SystemTest.php
index 0862d0af8d34c21cc2bcab1f87442a21eede677e..37f065b8681fe50847b669d0a9b709722b90e9b0 100644 (file)
@@ -23,7 +23,7 @@ class CRM_Utils_SystemTest extends CiviUnitTestCase {
     $actual = CRM_Utils_System::url('civicrm/foo/bar', 'foo=ab&bar=cd%26ef', false, null, false);
     $this->assertEquals($expected, $actual);
   }
-  
+
   function testUrlQueryArray() {
     $config = CRM_Core_Config::singleton();
     $this->assertTrue($config->userSystem instanceof CRM_Utils_System_UnitTests);
@@ -34,4 +34,10 @@ class CRM_Utils_SystemTest extends CiviUnitTestCase {
     ), false, null, false);
     $this->assertEquals($expected, $actual);
   }
+
+  public function testEvalUrl() {
+    $this->assertEquals(FALSE, CRM_Utils_System::evalUrl(FALSE));
+    $this->assertEquals('http://example.com/', CRM_Utils_System::evalUrl('http://example.com/'));
+    $this->assertEquals('http://example.com/?cms=UnitTests', CRM_Utils_System::evalUrl('http://example.com/?cms={uf}'));
+  }
 }