@@ -38,7 +38,7 @@ public function testRenderWithoutView()
38
38
$ output = $ this ->view ->render (false );
39
39
40
40
$ this ->assertSame ('user,fake,list,item1,item2 ' . PHP_EOL , $ output );
41
- $ this ->assertSame ('text/csv ' , $ this ->response ->getType ());
41
+ $ this ->assertSame ('text/csv ' , $ this ->view -> response ->getType ());
42
42
}
43
43
44
44
/**
@@ -80,7 +80,7 @@ public function testRenderWithoutViewMultiple()
80
80
81
81
$ expected = 'a,b,c ' . PHP_EOL . '1,2,3 ' . PHP_EOL . 'you,and,me ' . PHP_EOL ;
82
82
$ this ->assertSame ($ expected , $ output );
83
- $ this ->assertSame ('text/csv ' , $ this ->response ->getType ());
83
+ $ this ->assertSame ('text/csv ' , $ this ->view -> response ->getType ());
84
84
85
85
$ this ->view ->set ('_serialize ' , true );
86
86
$ output = $ this ->view ->render (false );
@@ -105,7 +105,7 @@ public function testRenderWithCustomEol()
105
105
$ output = $ this ->view ->render (false );
106
106
107
107
$ this ->assertSame ('a,b,c~1,2,3~you,and,me~ ' , $ output );
108
- $ this ->assertSame ('text/csv ' , $ this ->response ->getType ());
108
+ $ this ->assertSame ('text/csv ' , $ this ->view -> response ->getType ());
109
109
}
110
110
111
111
/**
@@ -129,7 +129,7 @@ public function testRenderWithCustomEncoding()
129
129
$ expected = iconv ('UTF-8 ' , 'SJIS ' , 'a,b,c ' . PHP_EOL . '1,2,3 ' . PHP_EOL . 'あなた,と,私 ' . PHP_EOL );
130
130
131
131
$ this ->assertSame ($ expected , $ output );
132
- $ this ->assertSame ('text/csv ' , $ this ->response ->getType ());
132
+ $ this ->assertSame ('text/csv ' , $ this ->view -> response ->getType ());
133
133
}
134
134
135
135
/**
@@ -159,7 +159,7 @@ public function testRenderWithMbstring()
159
159
$ expected = mb_convert_encoding ('a,b,c ' . PHP_EOL . '1,2,3 ' . PHP_EOL . 'あなた,と,私 ' . PHP_EOL , 'SJIS ' , 'UTF-8 ' );
160
160
161
161
$ this ->assertSame ($ expected , $ output );
162
- $ this ->assertSame ('text/csv ' , $ this ->response ->getType ());
162
+ $ this ->assertSame ('text/csv ' , $ this ->view -> response ->getType ());
163
163
}
164
164
165
165
/**
@@ -181,7 +181,7 @@ public function testRenderWithView()
181
181
$ output = $ this ->view ->render ('index ' );
182
182
183
183
$ this ->assertSame ('TEST OUTPUT ' . PHP_EOL , $ output );
184
- $ this ->assertSame ('text/csv ' , $ this ->response ->getType ());
184
+ $ this ->assertSame ('text/csv ' , $ this ->view -> response ->getType ());
185
185
}
186
186
187
187
/**
@@ -219,7 +219,7 @@ public function testRenderViaExtract()
219
219
$ output = $ this ->view ->render (false );
220
220
221
221
$ this ->assertSame ('jose,"2010-01-05 00:00:00",beach ' . PHP_EOL . 'drew,,ball ' . PHP_EOL , $ output );
222
- $ this ->assertSame ('text/csv ' , $ this ->response ->getType ());
222
+ $ this ->assertSame ('text/csv ' , $ this ->view -> response ->getType ());
223
223
}
224
224
225
225
/**
@@ -258,7 +258,7 @@ public function testRenderViaExtractOptionalField()
258
258
$ output = $ this ->view ->render (false );
259
259
260
260
$ this ->assertSame ('1,jose,,beach ' . PHP_EOL . '2,drew,ball,fun ' . PHP_EOL , $ output );
261
- $ this ->assertSame ('text/csv ' , $ this ->response ->getType ());
261
+ $ this ->assertSame ('text/csv ' , $ this ->view -> response ->getType ());
262
262
}
263
263
264
264
/**
@@ -298,7 +298,7 @@ function ($row) {
298
298
$ output = $ this ->view ->render (false );
299
299
300
300
$ this ->assertSame ('jose,"2010-01-05 00:00:00",my-beach ' . PHP_EOL . 'drew,,my-ball ' . PHP_EOL , $ output );
301
- $ this ->assertSame ('text/csv ' , $ this ->response ->getType ());
301
+ $ this ->assertSame ('text/csv ' , $ this ->view -> response ->getType ());
302
302
}
303
303
304
304
/**
@@ -351,7 +351,7 @@ public function testRenderWithSpecialCharacters()
351
351
352
352
CSV ;
353
353
$ this ->assertTextEquals ($ expected , $ output );
354
- $ this ->assertSame ('text/csv ' , $ this ->response ->getType ());
354
+ $ this ->assertSame ('text/csv ' , $ this ->view -> response ->getType ());
355
355
}
356
356
357
357
/**
@@ -400,7 +400,7 @@ public function testRenderEnclosure()
400
400
$ output = $ this ->view ->render (false );
401
401
402
402
$ this ->assertSame ($ expected , $ output );
403
- $ this ->assertSame ('text/csv ' , $ this ->response ->getType ());
403
+ $ this ->assertSame ('text/csv ' , $ this ->view -> response ->getType ());
404
404
}
405
405
}
406
406
@@ -423,7 +423,7 @@ public function testRenderWithCustomNull()
423
423
$ output = $ this ->view ->render (false );
424
424
425
425
$ this ->assertSame ('a,b,c~1,2,NULL~you,NULL,me~ ' , $ output );
426
- $ this ->assertSame ('text/csv ' , $ this ->response ->getType ());
426
+ $ this ->assertSame ('text/csv ' , $ this ->view -> response ->getType ());
427
427
}
428
428
429
429
/**
0 commit comments