forked from laruence/yaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path014.phpt
82 lines (73 loc) · 1.99 KB
/
014.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
--TEST--
Check for Yaf_Application
--SKIPIF--
<?php if (!extension_loaded("yaf")) print "skip"; ?>
--INI--
yaf.environ="product"
yaf.use_namespace=0
--FILE--
<?php
define("APPLICATION_PATH", dirname(__FILE__));
$app = new Yaf_Application(
dirname(__FILE__) . "/simple.ini",
'product');
print_r($app);
?>
--EXPECTF--
Yaf_Application Object
(
[directory] => %stests%capplcation
[library] =>
[bootstrap] =>
[ext] => php
[view_ext] => phtml
[environ:protected] => product
[running:protected] =>
[err_msg:protected] =>
[err_no:protected] => 0
[config:protected] => Yaf_Config_Ini Object
(
%A
)
[dispatcher:protected] => Yaf_Dispatcher Object
(
[auto_render:protected] => 1
[instant_flush:protected] =>
[return_response:protected] =>
[request:protected] => Yaf_Request_Http Object
(
[method] => CLI
[module] =>
[controller] =>
[action] =>
[uri:protected] =>
[base_uri:protected] =>
[dispatched:protected] =>
[routed:protected] =>
[language:protected] =>
[params:protected] => Array
(
)
)
[response:protected] =>
[router:protected] => Yaf_Router Object
(
[routes:protected] => Array
(
[_default] => Yaf_Route_Static Object
(
)
)
[current:protected] =>
)
[view:protected] =>
[plugins:protected] => Array
(
)
)
[modules:protected] => Array
(
[0] => Index
)
[default_route:protected] =>
)