@@ -64,7 +64,7 @@ class TestPresenter extends BasePresenter
6464 $ this ->t2 = 4 ;
6565 Assert::same ('/index.php?p2=2&p1=1&t1=3&t2=4&action=default&presenter=Test ' , $ this ->link ('this ' ));
6666 Assert::same ('/index.php?p1=1&t1=3&action=default&presenter=Second ' , $ this ->link ('Second: ' ));
67- Assert::same ('/index.php?p1=1&t1=3&action=default&presenter=Third ' , $ this ->link ('Third: ' ));
67+ Assert::same ('/index.php?p1=1&t1=3&t2=4& action=default&presenter=Third ' , $ this ->link ('Third: ' ));
6868
6969 $ this ->p1 = 20 ;
7070 Assert::same ('/index.php?t1=3&action=default&presenter=Second ' , $ this ->link ('Second: ' ));
@@ -97,27 +97,27 @@ class ThirdPresenter extends BasePresenter
9797
9898Assert::same ([
9999 'p1 ' => ['def ' => null , 'since ' => 'BasePresenter ' ],
100- 't1 ' => ['def ' => null , 'since ' => 'BasePresenter ' ],
100+ 't1 ' => ['def ' => null , 'since ' => 'PersistentParam1 ' ],
101101], BasePresenter::getReflection ()->getPersistentParams ());
102102
103103Assert::same ([
104104 'p2 ' => ['def ' => null , 'since ' => 'TestPresenter ' ],
105105 'p1 ' => ['def ' => null , 'since ' => 'BasePresenter ' ],
106- 't1 ' => ['def ' => null , 'since ' => 'BasePresenter ' ],
107- 't2 ' => ['def ' => null , 'since ' => 'TestPresenter ' ],
106+ 't1 ' => ['def ' => null , 'since ' => 'PersistentParam1 ' ],
107+ 't2 ' => ['def ' => null , 'since ' => 'PersistentParam2A ' ],
108108], TestPresenter::getReflection ()->getPersistentParams ());
109109
110110Assert::same ([
111111 'p1 ' => ['def ' => 20 , 'since ' => 'BasePresenter ' ],
112112 'p3 ' => ['def ' => null , 'since ' => 'SecondPresenter ' ],
113- 't1 ' => ['def ' => null , 'since ' => 'BasePresenter ' ],
114- 't3 ' => ['def ' => null , 'since ' => 'SecondPresenter ' ],
113+ 't1 ' => ['def ' => null , 'since ' => 'PersistentParam1 ' ],
114+ 't3 ' => ['def ' => null , 'since ' => 'PersistentParam3 ' ],
115115], SecondPresenter::getReflection ()->getPersistentParams ());
116116
117117Assert::same ([
118118 'p1 ' => ['def ' => null , 'since ' => 'BasePresenter ' ],
119- 't1 ' => ['def ' => null , 'since ' => 'BasePresenter ' ],
120- 't2 ' => ['def ' => null , 'since ' => 'ThirdPresenter ' ],
119+ 't1 ' => ['def ' => null , 'since ' => 'PersistentParam1 ' ],
120+ 't2 ' => ['def ' => null , 'since ' => 'PersistentParam2A ' ],
121121], ThirdPresenter::getReflection ()->getPersistentParams ());
122122
123123
0 commit comments