@@ 182-196 (lines=15) @@ | ||
179 | $this->assertEquals($expected, $result); |
|
180 | } |
|
181 | ||
182 | public function indexOfProvider() |
|
183 | { |
|
184 | return array( |
|
185 | array(6, 'foo & bar', 'bar'), |
|
186 | array(6, 'foo & bar', 'bar', 0), |
|
187 | array(false, 'foo & bar', 'baz'), |
|
188 | array(false, 'foo & bar', 'baz', 0), |
|
189 | array(0, 'foo & bar & foo', 'foo', 0), |
|
190 | array(12, 'foo & bar & foo', 'foo', 5), |
|
191 | array(6, 'fòô & bàř', 'bàř', 0, 'UTF-8'), |
|
192 | array(false, 'fòô & bàř', 'baz', 0, 'UTF-8'), |
|
193 | array(0, 'fòô & bàř & fòô', 'fòô', 0, 'UTF-8'), |
|
194 | array(12, 'fòô & bàř & fòô', 'fòô', 5, 'UTF-8'), |
|
195 | ); |
|
196 | } |
|
197 | ||
198 | /** |
|
199 | * @dataProvider indexOfLastProvider() |
|
@@ 207-221 (lines=15) @@ | ||
204 | $this->assertEquals($expected, $result); |
|
205 | } |
|
206 | ||
207 | public function indexOfLastProvider() |
|
208 | { |
|
209 | return array( |
|
210 | array(6, 'foo & bar', 'bar'), |
|
211 | array(6, 'foo & bar', 'bar', 0), |
|
212 | array(false, 'foo & bar', 'baz'), |
|
213 | array(false, 'foo & bar', 'baz', 0), |
|
214 | array(12, 'foo & bar & foo', 'foo', 0), |
|
215 | array(0, 'foo & bar & foo', 'foo', -5), |
|
216 | array(6, 'fòô & bàř', 'bàř', 0, 'UTF-8'), |
|
217 | array(false, 'fòô & bàř', 'baz', 0, 'UTF-8'), |
|
218 | array(12, 'fòô & bàř & fòô', 'fòô', 0, 'UTF-8'), |
|
219 | array(0, 'fòô & bàř & fòô', 'fòô', -5, 'UTF-8'), |
|
220 | ); |
|
221 | } |
|
222 | ||
223 | /** |
|
224 | * @dataProvider appendProvider() |