Skip to content

Commit

Permalink
Added tests for laruence#134
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Nov 9, 2014
1 parent 6a3b682 commit 29c8f18
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/issue134.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--TEST--
ISSUE #134 (Segfault while calling assemble)
--SKIPIF--
<?php if (!extension_loaded("yaf")) print "skip"; ?>
--INI--
yaf.use_namespace=0
--FILE--
<?php
$router = new Yaf_Router();
$route = new Yaf_Route_Rewrite(
"/detail/:id",
array(
'controller' => 'index',
'action' => 'detail',
'module' => 'kfc'
)
);
$router->addRoute("kfc/index/detail", $route);

print_r($router->getRoute('kfc/index/detail')->assemble(
array(
':id' => '1',
)
));
--EXPECTF--
/detail/1

0 comments on commit 29c8f18

Please sign in to comment.