forked from laruence/yaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path031.phpt
35 lines (33 loc) · 754 Bytes
/
031.phpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--TEST--
Check for application.dispatcher.defaultRoute
--SKIPIF--
<?php if (!extension_loaded("yaf")) print "skip"; ?>
--INI--
yaf.library="/php/global/dir"
yaf.use_namespace=0
--FILE--
<?php
$config = array(
"application" => array(
"directory" => realpath(dirname(__FILE__)),
"dispatcher" => array(
"defaultRoute" => array(
"type" => "map",
"delimiter" => '##',
"controllerPrefer" => 1,
),
),
),
);
$app = new Yaf_Application($config);
print_r($app->getDispatcher()->getRouter()->getRoutes());
?>
--EXPECTF--
Array
(
[_default] => Yaf_Route_Map Object
(
[_ctl_router:protected] => 1
[_delimiter:protected] => ##
)
)