[limb-svn] r7116 - 3.x/trunk/limb/web_app/tests/cases/plain/request

svn at limb-project.com svn at limb-project.com
Sat Jul 12 21:33:08 MSD 2008


Author: pachanga
Date: 2008-07-12 21:33:08 +0400 (Sat, 12 Jul 2008)
New Revision: 7116
URL: http://fisheye.limb-project.com/changelog/limb/?cs=7116

Modified:
   3.x/trunk/limb/web_app/tests/cases/plain/request/lmbRoutesRequestDispatcherTest.class.php
Log:
-- using lmbUri::reset() instead of deprecated lmbUri::parse(..)

Modified: 3.x/trunk/limb/web_app/tests/cases/plain/request/lmbRoutesRequestDispatcherTest.class.php
===================================================================
--- 3.x/trunk/limb/web_app/tests/cases/plain/request/lmbRoutesRequestDispatcherTest.class.php	2008-07-12 17:29:27 UTC (rev 7115)
+++ 3.x/trunk/limb/web_app/tests/cases/plain/request/lmbRoutesRequestDispatcherTest.class.php	2008-07-12 17:33:08 UTC (rev 7116)
@@ -32,7 +32,7 @@
     $routes = new lmbRoutes($config_array);
     $this->toolkit->setRoutes($routes);
 
-    $this->request->getUri()->parse('/news');
+    $this->request->getUri()->reset('/news');
 
     $dispatcher = new lmbRoutesRequestDispatcher();
     $result = $dispatcher->dispatch($this->request);
@@ -47,7 +47,7 @@
     $routes = new lmbRoutes($config_array);
     $this->toolkit->setRoutes($routes);
 
-    $this->request->getUri()->parse('/news/display');
+    $this->request->getUri()->reset('/news/display');
     $this->request->set('action', 'admin_display'); // !!!
 
     $dispatcher = new lmbRoutesRequestDispatcher();
@@ -63,7 +63,7 @@
     $routes = new lmbRoutes($config_array);
     $this->toolkit->setRoutes($routes);
 
-    $this->request->getUri()->parse('/news/display');
+    $this->request->getUri()->reset('/news/display');
     $this->request->set('action', 'admin_display'); // !!!
     $this->request->set('controller', 'my_controller'); // !!!
 
@@ -82,17 +82,17 @@
 
     $dispatcher = new lmbRoutesRequestDispatcher();
 
-    $this->request->getUri()->parse('/news/admin_display');
+    $this->request->getUri()->reset('/news/admin_display');
     $result = $dispatcher->dispatch($this->request);
     $this->assertEqual($result['controller'], 'news');
     $this->assertEqual($result['action'], 'admin_display');
 
-    $this->request->getUri()->parse('/blog////index');
+    $this->request->getUri()->reset('/blog////index');
     $result = $dispatcher->dispatch($this->request);
     $this->assertEqual($result['controller'], 'blog');
     $this->assertEqual($result['action'], 'index');
 
-    $this->request->getUri()->parse('/blog/../bar/index/');
+    $this->request->getUri()->reset('/blog/../bar/index/');
     $result = $dispatcher->dispatch($this->request);
     $this->assertEqual($result['controller'], 'bar');
     $this->assertEqual($result['action'], 'index');
@@ -107,7 +107,7 @@
     $dispatcher = new lmbRoutesRequestDispatcher($path_offset = '/www',
                                                  $base_path = 'http://example.com/app/');
 
-    $this->request->getUri()->parse('http://example.com/app/news/admin_display');
+    $this->request->getUri()->reset('http://example.com/app/news/admin_display');
     $result = $dispatcher->dispatch($this->request);
     $this->assertEqual($result['controller'], 'news');
     $this->assertEqual($result['action'], 'admin_display');



More information about the limb-svn mailing list