@@ -89,4 +89,44 @@ public function testSetActive()
89
89
$ this ->proxy ->setActive (false );
90
90
$ this ->assertFalse ($ this ->proxy ->isActive ());
91
91
}
92
+
93
+ /**
94
+ * @runInSeparateProcess
95
+ */
96
+ public function testName ()
97
+ {
98
+ $ this ->assertEquals (session_name (), $ this ->proxy ->getName ());
99
+ $ this ->proxy ->setName ('foo ' );
100
+ $ this ->assertEquals ('foo ' , $ this ->proxy ->getName ());
101
+ $ this ->assertEquals (session_name (), $ this ->proxy ->getName ());
102
+ }
103
+
104
+ /**
105
+ * @expectedException \LogicException
106
+ */
107
+ public function testNameException ()
108
+ {
109
+ $ this ->proxy ->setActive (true );
110
+ $ this ->proxy ->setName ('foo ' );
111
+ }
112
+
113
+ /**
114
+ * @runInSeparateProcess
115
+ */
116
+ public function testId ()
117
+ {
118
+ $ this ->assertEquals (session_id (), $ this ->proxy ->getId ());
119
+ $ this ->proxy ->setId ('foo ' );
120
+ $ this ->assertEquals ('foo ' , $ this ->proxy ->getId ());
121
+ $ this ->assertEquals (session_id (), $ this ->proxy ->getId ());
122
+ }
123
+
124
+ /**
125
+ * @expectedException \LogicException
126
+ */
127
+ public function testIdException ()
128
+ {
129
+ $ this ->proxy ->setActive (true );
130
+ $ this ->proxy ->setId ('foo ' );
131
+ }
92
132
}
0 commit comments