@@ -38,7 +38,7 @@ public function testRenderWithoutView()
3838 $ output = $ this ->view ->render (false );
3939
4040 $ this ->assertSame ('user,fake,list,item1,item2 ' . PHP_EOL , $ output );
41- $ this ->assertSame ('text/csv ' , $ this ->view ->response ->getType ());
41+ $ this ->assertSame ('text/csv ' , $ this ->view ->getResponse () ->getType ());
4242 }
4343
4444 /**
@@ -132,7 +132,7 @@ public function testRenderWithoutViewMultiple()
132132
133133 $ expected = 'a,b,c ' . PHP_EOL . '1,2,3 ' . PHP_EOL . 'you,and,me ' . PHP_EOL ;
134134 $ this ->assertSame ($ expected , $ output );
135- $ this ->assertSame ('text/csv ' , $ this ->view ->response ->getType ());
135+ $ this ->assertSame ('text/csv ' , $ this ->view ->getResponse () ->getType ());
136136
137137 $ this ->view ->set ('_serialize ' , true );
138138 $ output = $ this ->view ->render (false );
@@ -157,7 +157,7 @@ public function testRenderWithCustomEol()
157157 $ output = $ this ->view ->render (false );
158158
159159 $ this ->assertSame ('a,b,c~1,2,3~you,and,me~ ' , $ output );
160- $ this ->assertSame ('text/csv ' , $ this ->view ->response ->getType ());
160+ $ this ->assertSame ('text/csv ' , $ this ->view ->getResponse () ->getType ());
161161 }
162162
163163 /**
@@ -181,7 +181,7 @@ public function testRenderWithCustomEncoding()
181181 $ expected = iconv ('UTF-8 ' , 'SJIS ' , 'a,b,c ' . PHP_EOL . '1,2,3 ' . PHP_EOL . 'あなた,と,私 ' . PHP_EOL );
182182
183183 $ this ->assertSame ($ expected , $ output );
184- $ this ->assertSame ('text/csv ' , $ this ->view ->response ->getType ());
184+ $ this ->assertSame ('text/csv ' , $ this ->view ->getResponse () ->getType ());
185185 }
186186
187187 /**
@@ -211,7 +211,7 @@ public function testRenderWithMbstring()
211211 $ expected = mb_convert_encoding ('a,b,c ' . PHP_EOL . '1,2,3 ' . PHP_EOL . 'あなた,と,私 ' . PHP_EOL , 'SJIS ' , 'UTF-8 ' );
212212
213213 $ this ->assertSame ($ expected , $ output );
214- $ this ->assertSame ('text/csv ' , $ this ->view ->response ->getType ());
214+ $ this ->assertSame ('text/csv ' , $ this ->view ->getResponse () ->getType ());
215215 }
216216
217217 /**
@@ -233,7 +233,7 @@ public function testRenderWithView()
233233 $ output = $ this ->view ->render ('index ' );
234234
235235 $ this ->assertSame ('TEST OUTPUT ' . PHP_EOL , $ output );
236- $ this ->assertSame ('text/csv ' , $ this ->view ->response ->getType ());
236+ $ this ->assertSame ('text/csv ' , $ this ->view ->getResponse () ->getType ());
237237 }
238238
239239 /**
@@ -271,7 +271,7 @@ public function testRenderViaExtract()
271271 $ output = $ this ->view ->render (false );
272272
273273 $ this ->assertSame ('jose,"2010-01-05 00:00:00",beach ' . PHP_EOL . 'drew,,ball ' . PHP_EOL , $ output );
274- $ this ->assertSame ('text/csv ' , $ this ->view ->response ->getType ());
274+ $ this ->assertSame ('text/csv ' , $ this ->view ->getResponse () ->getType ());
275275 }
276276
277277 /**
@@ -310,7 +310,7 @@ public function testRenderViaExtractOptionalField()
310310 $ output = $ this ->view ->render (false );
311311
312312 $ this ->assertSame ('1,jose,,beach ' . PHP_EOL . '2,drew,ball,fun ' . PHP_EOL , $ output );
313- $ this ->assertSame ('text/csv ' , $ this ->view ->response ->getType ());
313+ $ this ->assertSame ('text/csv ' , $ this ->view ->getResponse () ->getType ());
314314 }
315315
316316 /**
@@ -350,7 +350,7 @@ function ($row) {
350350 $ output = $ this ->view ->render (false );
351351
352352 $ this ->assertSame ('jose,"2010-01-05 00:00:00",my-beach ' . PHP_EOL . 'drew,,my-ball ' . PHP_EOL , $ output );
353- $ this ->assertSame ('text/csv ' , $ this ->view ->response ->getType ());
353+ $ this ->assertSame ('text/csv ' , $ this ->view ->getResponse () ->getType ());
354354 }
355355
356356 /**
@@ -403,7 +403,7 @@ public function testRenderWithSpecialCharacters()
403403
404404CSV ;
405405 $ this ->assertTextEquals ($ expected , $ output );
406- $ this ->assertSame ('text/csv ' , $ this ->view ->response ->getType ());
406+ $ this ->assertSame ('text/csv ' , $ this ->view ->getResponse () ->getType ());
407407 }
408408
409409 /**
@@ -452,7 +452,7 @@ public function testRenderEnclosure()
452452 $ output = $ this ->view ->render (false );
453453
454454 $ this ->assertSame ($ expected , $ output );
455- $ this ->assertSame ('text/csv ' , $ this ->view ->response ->getType ());
455+ $ this ->assertSame ('text/csv ' , $ this ->view ->getResponse () ->getType ());
456456 }
457457 }
458458
@@ -475,7 +475,7 @@ public function testRenderWithCustomNull()
475475 $ output = $ this ->view ->render (false );
476476
477477 $ this ->assertSame ('a,b,c~1,2,NULL~you,NULL,me~ ' , $ output );
478- $ this ->assertSame ('text/csv ' , $ this ->view ->response ->getType ());
478+ $ this ->assertSame ('text/csv ' , $ this ->view ->getResponse () ->getType ());
479479 }
480480
481481 /**
0 commit comments