From e9af107907b04e121defd94f0a26f901a553a9a2 Mon Sep 17 00:00:00 2001 From: Vyacheslav Agafonov Date: Fri, 2 Dec 2011 17:30:42 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1hange=20the=20variable=20type=20of=20the?= =?UTF-8?q?=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/app/router/RouterTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/app/router/RouterTest.php b/tests/app/router/RouterTest.php index 78ff9f9..2584961 100644 --- a/tests/app/router/RouterTest.php +++ b/tests/app/router/RouterTest.php @@ -29,7 +29,7 @@ class RouterTest extends PHPUnit_Framework_TestCase $router->add('user', 'user/account/:id', 'user'); $route = $router->route('user/account/213'); $this->assertSame(1, count($route->getParams())); - $this->assertSame(array('id' => 213), $route->getParams()); + $this->assertSame(array('id' => '213'), $route->getParams()); $this->assertSame('user', $router->getRouteName()); } @@ -41,10 +41,10 @@ class RouterTest extends PHPUnit_Framework_TestCase $route = $router->route('user/account/213'); $this->assertSame('user', $router->getRouteName()); $this->assertSame(1, count($route->getParams())); - $this->assertSame(array('id' => 213), $route->getParams()); + $this->assertSame(array('id' => '213'), $route->getParams()); $route = $router->route('sale/order/22'); $this->assertSame('sale', $router->getRouteName()); - $this->assertSame(array('id' => 22), $route->getParams()); + $this->assertSame(array('id' => '22'), $route->getParams()); } public function testRouteNotmatch()