From 599520f364c72b54ff37c348a3e2a73256f538be Mon Sep 17 00:00:00 2001 From: ggargani Date: Sun, 18 Sep 2016 09:25:59 +0200 Subject: [PATCH] CRM-18199 Stripping commnt regexp - Stile issues Fixed style issues in test file --- tests/phpunit/CRM/Utils/FileTest.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/phpunit/CRM/Utils/FileTest.php b/tests/phpunit/CRM/Utils/FileTest.php index ee56e13117..5327246c33 100644 --- a/tests/phpunit/CRM/Utils/FileTest.php +++ b/tests/phpunit/CRM/Utils/FileTest.php @@ -25,21 +25,21 @@ class CRM_Utils_FileTest extends CiviUnitTestCase { } public function testStripComment() { $strings = array( - "\nab\n-- cd\nef" => "\nab\nef", - "ab\n-- cd\nef" => "ab\nef", - "ab\n-- cd\nef\ngh" => "ab\nef\ngh", - "ab\n--cd\nef" => "ab\nef", - "ab\n--cd\nef\n" => "ab\nef\n", - "ab\n#cd\nef\n" => "ab\nef\n", - "ab\n--cd\nef" => "ab\nef", - "ab\n#cd\nef" => "ab\nef", - "ab\nfoo#cd\nef" => "ab\nfoo#cd\nef", - "ab\r\n--cd\r\nef" => "ab\r\nef", - "ab\r\n#cd\r\nef" => "ab\r\nef", - "ab\r\nfoo#cd\r\nef" => "ab\r\nfoo#cd\r\nef", + "\nab\n-- cd\nef" => "\nab\nef", + "ab\n-- cd\nef" => "ab\nef", + "ab\n-- cd\nef\ngh" => "ab\nef\ngh", + "ab\n--cd\nef" => "ab\nef", + "ab\n--cd\nef\n" => "ab\nef\n", + "ab\n#cd\nef\n" => "ab\nef\n", + "ab\n--cd\nef" => "ab\nef", + "ab\n#cd\nef" => "ab\nef", + "ab\nfoo#cd\nef" => "ab\nfoo#cd\nef", + "ab\r\n--cd\r\nef" => "ab\r\nef", + "ab\r\n#cd\r\nef" => "ab\r\nef", + "ab\r\nfoo#cd\r\nef" => "ab\r\nfoo#cd\r\nef", ); foreach ($strings as $string => $check) { - $test=CRM_Utils_File::stripComments($string); + $test = CRM_Utils_File::stripComments($string); $this->assertEquals($test, $check, sprintf("original=[%s]\nstripped=[%s]\nexpected=[%s]", -- 2.25.1