@@ -125,52 +125,21 @@ public function testGetOptionsJson()
125
125
$ decodedJson = $ this ->jsonSerializer ->unserialize ($ json );
126
126
127
127
$ this ->assertSame ('thumbs ' , $ decodedJson ['nav ' ]);
128
- $ this ->assertInternalType ("string " , $ decodedJson ['nav ' ]);
129
-
130
128
$ this ->assertSame (false , $ decodedJson ['loop ' ]);
131
- $ this ->assertInternalType ("bool " , $ decodedJson ['loop ' ]);
132
-
133
129
$ this ->assertSame (true , $ decodedJson ['keyboard ' ]);
134
- $ this ->assertInternalType ("bool " , $ decodedJson ['keyboard ' ]);
135
-
136
130
$ this ->assertSame (true , $ decodedJson ['arrows ' ]);
137
- $ this ->assertInternalType ("bool " , $ decodedJson ['arrows ' ]);
138
-
139
131
$ this ->assertSame (false , $ decodedJson ['showCaption ' ]);
140
- $ this ->assertInternalType ("bool " , $ decodedJson ['showCaption ' ]);
141
-
142
132
$ this ->assertSame (true , $ decodedJson ['allowfullscreen ' ]);
143
- $ this ->assertInternalType ("bool " , $ decodedJson ['allowfullscreen ' ]);
144
-
145
133
$ this ->assertSame ('horizontal ' , $ decodedJson ['navdir ' ]);
146
- $ this ->assertInternalType ("string " , $ decodedJson ['navdir ' ]);
147
-
148
134
$ this ->assertSame (true , $ decodedJson ['navarrows ' ]);
149
- $ this ->assertInternalType ("bool " , $ decodedJson ['navarrows ' ]);
150
-
151
135
$ this ->assertSame ('slides ' , $ decodedJson ['navtype ' ]);
152
- $ this ->assertInternalType ("string " , $ decodedJson ['navtype ' ]);
153
-
154
136
$ this ->assertSame (5 , $ decodedJson ['thumbmargin ' ]);
155
- $ this ->assertInternalType ("int " , $ decodedJson ['thumbmargin ' ]);
156
-
157
137
$ this ->assertSame ('slide ' , $ decodedJson ['transition ' ]);
158
- $ this ->assertInternalType ("string " , $ decodedJson ['transition ' ]);
159
-
160
138
$ this ->assertSame (500 , $ decodedJson ['transitionduration ' ]);
161
- $ this ->assertInternalType ("int " , $ decodedJson ['transitionduration ' ]);
162
-
163
139
$ this ->assertSame (100 , $ decodedJson ['height ' ]);
164
- $ this ->assertInternalType ("int " , $ decodedJson ['height ' ]);
165
-
166
140
$ this ->assertSame (200 , $ decodedJson ['width ' ]);
167
- $ this ->assertInternalType ("int " , $ decodedJson ['width ' ]);
168
-
169
141
$ this ->assertSame (300 , $ decodedJson ['thumbheight ' ]);
170
- $ this ->assertInternalType ("int " , $ decodedJson ['thumbheight ' ]);
171
-
172
142
$ this ->assertSame (400 , $ decodedJson ['thumbwidth ' ]);
173
- $ this ->assertInternalType ("int " , $ decodedJson ['thumbwidth ' ]);
174
143
}
175
144
176
145
public function testGetFSOptionsJson ()
@@ -200,37 +169,16 @@ public function testGetFSOptionsJson()
200
169
//Note, this tests the special case for nav variable set to false. It
201
170
//Should not be converted to boolean.
202
171
$ this ->assertSame ('false ' , $ decodedJson ['nav ' ]);
203
- $ this ->assertInternalType ("string " , $ decodedJson ['nav ' ]);
204
-
205
172
$ this ->assertSame (true , $ decodedJson ['loop ' ]);
206
- $ this ->assertInternalType ("bool " , $ decodedJson ['loop ' ]);
207
-
208
173
$ this ->assertSame (false , $ decodedJson ['arrows ' ]);
209
- $ this ->assertInternalType ("bool " , $ decodedJson ['arrows ' ]);
210
-
211
174
$ this ->assertSame (true , $ decodedJson ['keyboard ' ]);
212
- $ this ->assertInternalType ("bool " , $ decodedJson ['keyboard ' ]);
213
-
214
175
$ this ->assertSame (true , $ decodedJson ['showCaption ' ]);
215
- $ this ->assertInternalType ("bool " , $ decodedJson ['showCaption ' ]);
216
-
217
176
$ this ->assertSame ('vertical ' , $ decodedJson ['navdir ' ]);
218
- $ this ->assertInternalType ("string " , $ decodedJson ['navdir ' ]);
219
-
220
177
$ this ->assertSame (false , $ decodedJson ['navarrows ' ]);
221
- $ this ->assertInternalType ("bool " , $ decodedJson ['navarrows ' ]);
222
-
223
178
$ this ->assertSame (10 , $ decodedJson ['thumbmargin ' ]);
224
- $ this ->assertInternalType ("int " , $ decodedJson ['thumbmargin ' ]);
225
-
226
179
$ this ->assertSame ('thumbs ' , $ decodedJson ['navtype ' ]);
227
- $ this ->assertInternalType ("string " , $ decodedJson ['navtype ' ]);
228
-
229
180
$ this ->assertSame ('dissolve ' , $ decodedJson ['transition ' ]);
230
- $ this ->assertInternalType ("string " , $ decodedJson ['transition ' ]);
231
-
232
181
$ this ->assertSame (300 , $ decodedJson ['transitionduration ' ]);
233
- $ this ->assertInternalType ("int " , $ decodedJson ['transitionduration ' ]);
234
182
}
235
183
236
184
public function testGetOptionsJsonOptionals ()
0 commit comments