From 29c8f18838c3c333bd99371275277f70b82aa139 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sun, 9 Nov 2014 23:41:10 +0800 Subject: [PATCH] Added tests for #134 --- tests/issue134.phpt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/issue134.phpt diff --git a/tests/issue134.phpt b/tests/issue134.phpt new file mode 100644 index 00000000..eadf2a73 --- /dev/null +++ b/tests/issue134.phpt @@ -0,0 +1,26 @@ +--TEST-- +ISSUE #134 (Segfault while calling assemble) +--SKIPIF-- + +--INI-- +yaf.use_namespace=0 +--FILE-- + '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