@@ 311-318 (lines=8) @@ | ||
308 | $this->assertEquals($expected, $msg); |
|
309 | } |
|
310 | ||
311 | public function testReplaceStringStartingWithSpaces() |
|
312 | { |
|
313 | $string = "This is a string"; |
|
314 | $expected = "This is a string"; |
|
315 | $foo = new testType(); |
|
316 | $result = $foo->replaceString($string); |
|
317 | $this->assertEquals($expected, $result); |
|
318 | } |
|
319 | ||
320 | public function testReplaceStringStartingWithTabs() |
|
321 | { |
|
@@ 320-327 (lines=8) @@ | ||
317 | $this->assertEquals($expected, $result); |
|
318 | } |
|
319 | ||
320 | public function testReplaceStringStartingWithTabs() |
|
321 | { |
|
322 | $string = "This\tis\ta\tstring"; |
|
323 | $expected = "This is a string"; |
|
324 | $foo = new testType(); |
|
325 | $result = $foo->replaceString($string); |
|
326 | $this->assertEquals($expected, $result); |
|
327 | } |
|
328 | ||
329 | public function testReplaceStringStartingWithNuLines() |
|
330 | { |
|
@@ 329-336 (lines=8) @@ | ||
326 | $this->assertEquals($expected, $result); |
|
327 | } |
|
328 | ||
329 | public function testReplaceStringStartingWithNuLines() |
|
330 | { |
|
331 | $string = "This\nis\na\nstring"; |
|
332 | $expected = "This is a string"; |
|
333 | $foo = new testType(); |
|
334 | $result = $foo->replaceString($string); |
|
335 | $this->assertEquals($expected, $result); |
|
336 | } |
|
337 | ||
338 | public function testReplaceStringWithPadding() |
|
339 | { |
|
@@ 338-345 (lines=8) @@ | ||
335 | $this->assertEquals($expected, $result); |
|
336 | } |
|
337 | ||
338 | public function testReplaceStringWithPadding() |
|
339 | { |
|
340 | $string = " This is a string "; |
|
341 | $expected = " This is a string "; |
|
342 | $foo = new testType(); |
|
343 | $result = $foo->replaceString($string); |
|
344 | $this->assertEquals($expected, $result); |
|
345 | } |
|
346 | ||
347 | public function testCollapseStringWithSpacesAndPadding() |
|
348 | { |
|
@@ 347-354 (lines=8) @@ | ||
344 | $this->assertEquals($expected, $result); |
|
345 | } |
|
346 | ||
347 | public function testCollapseStringWithSpacesAndPadding() |
|
348 | { |
|
349 | $string = " This is a string "; |
|
350 | $expected = "This is a string"; |
|
351 | $foo = new testType(); |
|
352 | $result = $foo->collapseString($string); |
|
353 | $this->assertEquals($expected, $result); |
|
354 | } |
|
355 | ||
356 | public function testSimpleIdentifierValidWithTrailingSpace() |
|
357 | { |