[limb-svn] r6719 - 3.x/trunk/limb/web_app/tests/cases/plain/wact

svn at limb-project.com svn at limb-project.com
Tue Jan 22 11:33:40 MSK 2008


Author: serega
Date: 2008-01-22 11:33:40 +0300 (Tue, 22 Jan 2008)
New Revision: 6719
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6719

Added:
   3.x/trunk/limb/web_app/tests/cases/plain/wact/lmbIpFilterTest.class.php
   3.x/trunk/limb/web_app/tests/cases/plain/wact/request/
Removed:
   3.x/trunk/limb/web_app/tests/cases/plain/wact/tags/
Log:
-- other WACT related folders renaming


Copied: 3.x/trunk/limb/web_app/tests/cases/plain/wact/lmbIpFilterTest.class.php (from rev 6718, 3.x/trunk/limb/web_app/tests/cases/plain/wact/tags/lmbIpFilterTest.class.php)
===================================================================
--- 3.x/trunk/limb/web_app/tests/cases/plain/wact/lmbIpFilterTest.class.php	                        (rev 0)
+++ 3.x/trunk/limb/web_app/tests/cases/plain/wact/lmbIpFilterTest.class.php	2008-01-22 08:33:40 UTC (rev 6719)
@@ -0,0 +1,35 @@
+<?php
+/*
+ * Limb PHP Framework
+ *
+ * @link http://limb-project.com 
+ * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
+ * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
+ */
+
+class lmbIpFilterTest extends lmbWactTestCase
+{
+  function testFilter()
+  {
+    $template = '{$"-1"|ip}';
+
+    $this->registerTestingTemplate('/limb/ip.html', $template);
+
+    $page = $this->initTemplate('/limb/ip.html');
+
+    $this->assertEqual($page->capture(), '255.255.255.255');
+  }
+
+  function testFilterDBE()
+  {
+    $template = '<core:SET var="-1"/>{$var|ip}';
+
+    $this->registerTestingTemplate('/limb/ip2.html', $template);
+
+    $page = $this->initTemplate('/limb/ip2.html');
+
+    $this->assertEqual($page->capture(), '255.255.255.255');
+  }
+
+}
+

Copied: 3.x/trunk/limb/web_app/tests/cases/plain/wact/request (from rev 6718, 3.x/trunk/limb/web_app/tests/cases/plain/wact/tags/request)



More information about the limb-svn mailing list