From 03f3b8479b88688e45fd0879b755937fd01f593a Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sun, 14 Oct 2018 12:51:01 +0200 Subject: Sync leading and final newlines in source code files This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' ' characters plus a terminating '' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2 --- scripts/Makefile.frag | 1 - scripts/dev/find_tested.php | 1 - scripts/dev/gen_verify_stub | 1 - scripts/dev/generate-phpt/src/codeSnippets/array.txt | 2 +- scripts/dev/generate-phpt/src/codeSnippets/boolean.txt | 2 +- scripts/dev/generate-phpt/src/codeSnippets/commentEnd.txt | 2 +- scripts/dev/generate-phpt/src/codeSnippets/commentStart.txt | 2 +- scripts/dev/generate-phpt/src/codeSnippets/emptyUnsetUndefNull.txt | 2 +- scripts/dev/generate-phpt/src/codeSnippets/float.txt | 2 +- scripts/dev/generate-phpt/src/codeSnippets/int.txt | 2 +- scripts/dev/generate-phpt/src/codeSnippets/loopClose.txt | 2 +- scripts/dev/generate-phpt/src/codeSnippets/loopStart.txt | 2 +- scripts/dev/generate-phpt/src/codeSnippets/object.txt | 2 +- scripts/dev/generate-phpt/src/codeSnippets/string.txt | 2 +- scripts/dev/generate-phpt/src/gtAutoload.php | 2 +- scripts/dev/generate-phpt/src/gtClassMap.php | 2 +- scripts/dev/generate-phpt/src/gtCodeSnippet.php | 2 +- scripts/dev/generate-phpt/src/gtFunction.php | 2 +- scripts/dev/generate-phpt/src/gtMethod.php | 2 +- scripts/dev/generate-phpt/src/gtTestCaseWriter.php | 2 +- scripts/dev/generate-phpt/src/gtText.php | 2 +- .../generate-phpt/src/setup/exceptions/gtMissingOptionsException.php | 2 +- .../generate-phpt/src/setup/exceptions/gtUnknownSectionException.php | 2 +- scripts/dev/generate-phpt/src/setup/gtCommandLineOptions.php | 2 +- scripts/dev/generate-phpt/src/setup/gtOptionalSections.php | 2 +- scripts/dev/generate-phpt/src/setup/gtPreCondition.php | 2 +- scripts/dev/generate-phpt/src/setup/gtPreConditionList.php | 2 +- .../dev/generate-phpt/src/setup/preconditions/gtIfClassHasMethod.php | 2 +- .../src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php | 2 +- .../generate-phpt/src/setup/preconditions/gtIsSpecifiedTestType.php | 2 +- scripts/dev/generate-phpt/src/setup/preconditions/gtIsValidClass.php | 2 +- .../dev/generate-phpt/src/setup/preconditions/gtIsValidFunction.php | 2 +- scripts/dev/generate-phpt/src/testcase/gtBasicTestCase.php | 2 +- scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseFunction.php | 2 +- scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseMethod.php | 2 +- scripts/dev/generate-phpt/src/testcase/gtErrorTestCase.php | 2 +- scripts/dev/generate-phpt/src/testcase/gtErrorTestCaseFunction.php | 2 +- scripts/dev/generate-phpt/src/testcase/gtErrorTestCaseMethod.php | 2 +- scripts/dev/generate-phpt/src/testcase/gtVariationContainer.php | 2 +- .../dev/generate-phpt/src/testcase/gtVariationContainerFunction.php | 2 +- scripts/dev/generate-phpt/src/testcase/gtVariationContainerMethod.php | 2 +- scripts/dev/generate-phpt/src/testcase/gtVariationTestCase.php | 3 +-- scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseFunction.php | 2 +- scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseMethod.php | 2 +- scripts/dev/generate-phpt/src/texts/functionOrMethodNotSpecified.txt | 2 -- scripts/dev/generate-phpt/src/texts/methodNotSpecified.txt | 2 -- scripts/dev/generate-phpt/src/texts/testTypeNotSpecified.txt | 2 -- scripts/dev/generate-phpt/src/texts/unknownClass.txt | 2 -- scripts/dev/generate-phpt/src/texts/unknownFunction.txt | 2 -- scripts/dev/generate-phpt/src/texts/unknownMethod.txt | 2 -- scripts/dev/generate-phpt/tests/gtBasicTestCaseFunctionTest.php | 2 +- scripts/dev/generate-phpt/tests/gtBasicTestCaseMethodTest.php | 2 +- scripts/dev/generate-phpt/tests/gtCodeSnippetTest.php | 2 +- scripts/dev/generate-phpt/tests/gtCommandLineOptionsTest.php | 2 +- scripts/dev/generate-phpt/tests/gtErrorTestCaseFunctionTest.php | 2 +- scripts/dev/generate-phpt/tests/gtErrorTestCaseMethodTest.php | 2 +- scripts/dev/generate-phpt/tests/gtFunctionTest.php | 2 +- scripts/dev/generate-phpt/tests/gtIfClassHasMethodTest.php | 2 +- scripts/dev/generate-phpt/tests/gtIsSpecifiedFunctionOrMethodTest.php | 2 +- scripts/dev/generate-phpt/tests/gtIsSpecifiedTestTypeTest.php | 2 +- scripts/dev/generate-phpt/tests/gtIsValidClassTest.php | 2 +- scripts/dev/generate-phpt/tests/gtIsValidFunctionTest.php | 2 +- scripts/dev/generate-phpt/tests/gtIsValidMethodTest.php | 2 +- scripts/dev/generate-phpt/tests/gtMethodTest.php | 2 +- scripts/dev/generate-phpt/tests/gtOptionalSectionsTest.php | 2 +- scripts/dev/generate-phpt/tests/gtVariationTestCaseFunctionTest.php | 2 +- scripts/dev/generate-phpt/tests/gtVariationTestCaseMethodTest.php | 2 +- 67 files changed, 58 insertions(+), 74 deletions(-) (limited to 'scripts') diff --git a/scripts/Makefile.frag b/scripts/Makefile.frag index d3f8bb2136..06be3af28e 100644 --- a/scripts/Makefile.frag +++ b/scripts/Makefile.frag @@ -1,4 +1,3 @@ - # # Build environment install # diff --git a/scripts/dev/find_tested.php b/scripts/dev/find_tested.php index 18521638d3..21f252522a 100644 --- a/scripts/dev/find_tested.php +++ b/scripts/dev/find_tested.php @@ -225,4 +225,3 @@ function map_token_value($x) { ?> - diff --git a/scripts/dev/gen_verify_stub b/scripts/dev/gen_verify_stub index ac6dc4434d..f326230e5d 100755 --- a/scripts/dev/gen_verify_stub +++ b/scripts/dev/gen_verify_stub @@ -48,4 +48,3 @@ do done exit 0 - diff --git a/scripts/dev/generate-phpt/src/codeSnippets/array.txt b/scripts/dev/generate-phpt/src/codeSnippets/array.txt index 69a4af72c1..fa007aab9c 100644 --- a/scripts/dev/generate-phpt/src/codeSnippets/array.txt +++ b/scripts/dev/generate-phpt/src/codeSnippets/array.txt @@ -6,4 +6,4 @@ $variation_array = array( 'int indexed array' => $index_array, 'associative array' => $assoc_array, 'nested arrays' => array('foo', $index_array, $assoc_array), - ); \ No newline at end of file + ); diff --git a/scripts/dev/generate-phpt/src/codeSnippets/boolean.txt b/scripts/dev/generate-phpt/src/codeSnippets/boolean.txt index 53db40d30b..024690e757 100644 --- a/scripts/dev/generate-phpt/src/codeSnippets/boolean.txt +++ b/scripts/dev/generate-phpt/src/codeSnippets/boolean.txt @@ -3,4 +3,4 @@ $variation_array = array( 'lowercase false' =>false, 'uppercase TRUE' =>TRUE, 'uppercase FALSE' =>FALSE, - ); \ No newline at end of file + ); diff --git a/scripts/dev/generate-phpt/src/codeSnippets/commentEnd.txt b/scripts/dev/generate-phpt/src/codeSnippets/commentEnd.txt index d116022fb8..1b588a47e1 100644 --- a/scripts/dev/generate-phpt/src/codeSnippets/commentEnd.txt +++ b/scripts/dev/generate-phpt/src/codeSnippets/commentEnd.txt @@ -1,2 +1,2 @@ * - */ \ No newline at end of file + */ diff --git a/scripts/dev/generate-phpt/src/codeSnippets/commentStart.txt b/scripts/dev/generate-phpt/src/codeSnippets/commentStart.txt index e3466d5a1a..df6cefe76b 100644 --- a/scripts/dev/generate-phpt/src/codeSnippets/commentStart.txt +++ b/scripts/dev/generate-phpt/src/codeSnippets/commentStart.txt @@ -1,2 +1,2 @@ /** - * \ No newline at end of file + * diff --git a/scripts/dev/generate-phpt/src/codeSnippets/emptyUnsetUndefNull.txt b/scripts/dev/generate-phpt/src/codeSnippets/emptyUnsetUndefNull.txt index a957781205..c3d034d07b 100644 --- a/scripts/dev/generate-phpt/src/codeSnippets/emptyUnsetUndefNull.txt +++ b/scripts/dev/generate-phpt/src/codeSnippets/emptyUnsetUndefNull.txt @@ -8,4 +8,4 @@ $variation_array = array( 'empty string SQ' => '', 'uppercase NULL' => NULL, 'lowercase null' => null, - ); \ No newline at end of file + ); diff --git a/scripts/dev/generate-phpt/src/codeSnippets/float.txt b/scripts/dev/generate-phpt/src/codeSnippets/float.txt index 75c2b6cd52..7afd16f5f9 100644 --- a/scripts/dev/generate-phpt/src/codeSnippets/float.txt +++ b/scripts/dev/generate-phpt/src/codeSnippets/float.txt @@ -4,4 +4,4 @@ $variation_array = array( 'float 12.3456789000e10' => 12.3456789000e10, 'float -12.3456789000e10' => -12.3456789000e10, 'float .5' => .5, - ); \ No newline at end of file + ); diff --git a/scripts/dev/generate-phpt/src/codeSnippets/int.txt b/scripts/dev/generate-phpt/src/codeSnippets/int.txt index cdd28ae435..0b2cd7c3b0 100644 --- a/scripts/dev/generate-phpt/src/codeSnippets/int.txt +++ b/scripts/dev/generate-phpt/src/codeSnippets/int.txt @@ -3,4 +3,4 @@ $variation_array = array ( 'int 1' => 1, 'int 12345' => 12345, 'int -12345' => -2345, - ); \ No newline at end of file + ); diff --git a/scripts/dev/generate-phpt/src/codeSnippets/loopClose.txt b/scripts/dev/generate-phpt/src/codeSnippets/loopClose.txt index ff30235f07..5c34318c21 100644 --- a/scripts/dev/generate-phpt/src/codeSnippets/loopClose.txt +++ b/scripts/dev/generate-phpt/src/codeSnippets/loopClose.txt @@ -1 +1 @@ -} \ No newline at end of file +} diff --git a/scripts/dev/generate-phpt/src/codeSnippets/loopStart.txt b/scripts/dev/generate-phpt/src/codeSnippets/loopStart.txt index 8fd5eb20fd..0a90360dea 100644 --- a/scripts/dev/generate-phpt/src/codeSnippets/loopStart.txt +++ b/scripts/dev/generate-phpt/src/codeSnippets/loopStart.txt @@ -1 +1 @@ -foreach ( $variation_array as $var ) { \ No newline at end of file +foreach ( $variation_array as $var ) { diff --git a/scripts/dev/generate-phpt/src/codeSnippets/object.txt b/scripts/dev/generate-phpt/src/codeSnippets/object.txt index 28ee61bfae..0b9b16e4ef 100644 --- a/scripts/dev/generate-phpt/src/codeSnippets/object.txt +++ b/scripts/dev/generate-phpt/src/codeSnippets/object.txt @@ -22,4 +22,4 @@ class classWithoutToString $variation_array = array( 'instance of classWithToString' => new classWithToString(), 'instance of classWithoutToString' => new classWithoutToString(), - ); \ No newline at end of file + ); diff --git a/scripts/dev/generate-phpt/src/codeSnippets/string.txt b/scripts/dev/generate-phpt/src/codeSnippets/string.txt index a1d42376da..3b194276cc 100644 --- a/scripts/dev/generate-phpt/src/codeSnippets/string.txt +++ b/scripts/dev/generate-phpt/src/codeSnippets/string.txt @@ -7,4 +7,4 @@ $variation_array = array( 'string SQ' => 'string', 'mixed case string' => "sTrInG", 'heredoc' => $heredoc, - ); \ No newline at end of file + ); diff --git a/scripts/dev/generate-phpt/src/gtAutoload.php b/scripts/dev/generate-phpt/src/gtAutoload.php index 8c18c179eb..b215923f2c 100644 --- a/scripts/dev/generate-phpt/src/gtAutoload.php +++ b/scripts/dev/generate-phpt/src/gtAutoload.php @@ -60,4 +60,4 @@ class gtAutoload } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/gtClassMap.php b/scripts/dev/generate-phpt/src/gtClassMap.php index 1c346b83ce..2a359082f3 100644 --- a/scripts/dev/generate-phpt/src/gtClassMap.php +++ b/scripts/dev/generate-phpt/src/gtClassMap.php @@ -45,4 +45,4 @@ 'gtVariationContainerMethod' => 'testcase/gtVariationContainerMethod.php', 'gtVariationContainerFunction' => 'testcase/gtVariationContainerFunction.php', ); -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/gtCodeSnippet.php b/scripts/dev/generate-phpt/src/gtCodeSnippet.php index dc6543201a..0e02fa5572 100644 --- a/scripts/dev/generate-phpt/src/gtCodeSnippet.php +++ b/scripts/dev/generate-phpt/src/gtCodeSnippet.php @@ -69,4 +69,4 @@ class gtCodeSnippet } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/gtFunction.php b/scripts/dev/generate-phpt/src/gtFunction.php index b2752ad637..922374ede7 100644 --- a/scripts/dev/generate-phpt/src/gtFunction.php +++ b/scripts/dev/generate-phpt/src/gtFunction.php @@ -45,4 +45,4 @@ class gtFunction extends gtTestSubject { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/gtMethod.php b/scripts/dev/generate-phpt/src/gtMethod.php index dc8438c3b5..2db2bb7b0c 100644 --- a/scripts/dev/generate-phpt/src/gtMethod.php +++ b/scripts/dev/generate-phpt/src/gtMethod.php @@ -136,4 +136,4 @@ class gtMethod extends gtTestSubject { return $this->constructorInitialisationStatements; } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/gtTestCaseWriter.php b/scripts/dev/generate-phpt/src/gtTestCaseWriter.php index 9438e0f2ea..6b26a56c5e 100644 --- a/scripts/dev/generate-phpt/src/gtTestCaseWriter.php +++ b/scripts/dev/generate-phpt/src/gtTestCaseWriter.php @@ -24,4 +24,4 @@ class gtTestCaseWriter { fclose($fh); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/gtText.php b/scripts/dev/generate-phpt/src/gtText.php index 8cbd1650d4..c0eb469550 100644 --- a/scripts/dev/generate-phpt/src/gtText.php +++ b/scripts/dev/generate-phpt/src/gtText.php @@ -24,4 +24,4 @@ class gtText } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/setup/exceptions/gtMissingOptionsException.php b/scripts/dev/generate-phpt/src/setup/exceptions/gtMissingOptionsException.php index 5bff5e01a0..e3c2f35afb 100644 --- a/scripts/dev/generate-phpt/src/setup/exceptions/gtMissingOptionsException.php +++ b/scripts/dev/generate-phpt/src/setup/exceptions/gtMissingOptionsException.php @@ -4,4 +4,4 @@ { } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/setup/exceptions/gtUnknownSectionException.php b/scripts/dev/generate-phpt/src/setup/exceptions/gtUnknownSectionException.php index c4843240d7..b51482b00d 100644 --- a/scripts/dev/generate-phpt/src/setup/exceptions/gtUnknownSectionException.php +++ b/scripts/dev/generate-phpt/src/setup/exceptions/gtUnknownSectionException.php @@ -3,4 +3,4 @@ class gtUnknownSectionException extends RuntimeException { } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/setup/gtCommandLineOptions.php b/scripts/dev/generate-phpt/src/setup/gtCommandLineOptions.php index b1068e4600..f12ff8728a 100644 --- a/scripts/dev/generate-phpt/src/setup/gtCommandLineOptions.php +++ b/scripts/dev/generate-phpt/src/setup/gtCommandLineOptions.php @@ -95,4 +95,4 @@ class gtCommandLineOptions { } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/setup/gtOptionalSections.php b/scripts/dev/generate-phpt/src/setup/gtOptionalSections.php index 6c6de18345..e59c7a0be4 100644 --- a/scripts/dev/generate-phpt/src/setup/gtOptionalSections.php +++ b/scripts/dev/generate-phpt/src/setup/gtOptionalSections.php @@ -82,4 +82,4 @@ class gtOptionalSections { } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/setup/gtPreCondition.php b/scripts/dev/generate-phpt/src/setup/gtPreCondition.php index 294b41e9f2..137325bf04 100644 --- a/scripts/dev/generate-phpt/src/setup/gtPreCondition.php +++ b/scripts/dev/generate-phpt/src/setup/gtPreCondition.php @@ -11,4 +11,4 @@ abstract class gtPreCondition { abstract public function getMessage(); } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/setup/gtPreConditionList.php b/scripts/dev/generate-phpt/src/setup/gtPreConditionList.php index 88f9b36205..286699cfb8 100644 --- a/scripts/dev/generate-phpt/src/setup/gtPreConditionList.php +++ b/scripts/dev/generate-phpt/src/setup/gtPreConditionList.php @@ -30,4 +30,4 @@ class gtPreConditionList { } } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/setup/preconditions/gtIfClassHasMethod.php b/scripts/dev/generate-phpt/src/setup/preconditions/gtIfClassHasMethod.php index edd7a1cbae..a16cf81e4d 100644 --- a/scripts/dev/generate-phpt/src/setup/preconditions/gtIfClassHasMethod.php +++ b/scripts/dev/generate-phpt/src/setup/preconditions/gtIfClassHasMethod.php @@ -21,4 +21,4 @@ class gtIfClassHasMethod extends gtPreCondition { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php b/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php index f70af881ec..b78c1530f7 100644 --- a/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php +++ b/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php @@ -18,4 +18,4 @@ class gtIsSpecifiedFunctionOrMethod extends gtPreCondition { return gtText::get('functionOrMethodNotSpecified'); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedTestType.php b/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedTestType.php index ebc0a68f57..153efa5276 100644 --- a/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedTestType.php +++ b/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedTestType.php @@ -18,4 +18,4 @@ class gtIsSpecifiedTestType extends gtPreCondition { return gtText::get('testTypeNotSpecified'); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/setup/preconditions/gtIsValidClass.php b/scripts/dev/generate-phpt/src/setup/preconditions/gtIsValidClass.php index a39bab453e..545612ddf1 100644 --- a/scripts/dev/generate-phpt/src/setup/preconditions/gtIsValidClass.php +++ b/scripts/dev/generate-phpt/src/setup/preconditions/gtIsValidClass.php @@ -21,4 +21,4 @@ class gtIsValidClass extends gtPreCondition { return gtText::get('unknownClass'); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/setup/preconditions/gtIsValidFunction.php b/scripts/dev/generate-phpt/src/setup/preconditions/gtIsValidFunction.php index ed91c2ca3b..a5be4f1a0c 100644 --- a/scripts/dev/generate-phpt/src/setup/preconditions/gtIsValidFunction.php +++ b/scripts/dev/generate-phpt/src/setup/preconditions/gtIsValidFunction.php @@ -22,4 +22,4 @@ class gtIsValidFunction extends gtPreCondition { return gtText::get('unknownFunction'); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/testcase/gtBasicTestCase.php b/scripts/dev/generate-phpt/src/testcase/gtBasicTestCase.php index 92560c8631..ff22dd3ee1 100644 --- a/scripts/dev/generate-phpt/src/testcase/gtBasicTestCase.php +++ b/scripts/dev/generate-phpt/src/testcase/gtBasicTestCase.php @@ -34,4 +34,4 @@ abstract class gtBasicTestCase extends gtTestCase { $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase ); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseFunction.php b/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseFunction.php index c0fc9eb61f..62acab3f37 100644 --- a/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseFunction.php +++ b/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseFunction.php @@ -59,4 +59,4 @@ class gtBasicTestCaseFunction extends gtBasicTestCase { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseMethod.php b/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseMethod.php index d009d5038a..74a2414f86 100644 --- a/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseMethod.php +++ b/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseMethod.php @@ -49,4 +49,4 @@ public function constructTestCase() { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/testcase/gtErrorTestCase.php b/scripts/dev/generate-phpt/src/testcase/gtErrorTestCase.php index 82f955cf46..dbf9a665fd 100644 --- a/scripts/dev/generate-phpt/src/testcase/gtErrorTestCase.php +++ b/scripts/dev/generate-phpt/src/testcase/gtErrorTestCase.php @@ -50,4 +50,4 @@ abstract class gtErrorTestCase extends gtTestCase { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/testcase/gtErrorTestCaseFunction.php b/scripts/dev/generate-phpt/src/testcase/gtErrorTestCaseFunction.php index fcba6d798c..e966fff708 100644 --- a/scripts/dev/generate-phpt/src/testcase/gtErrorTestCaseFunction.php +++ b/scripts/dev/generate-phpt/src/testcase/gtErrorTestCaseFunction.php @@ -54,4 +54,4 @@ class gtErrorTestCaseFunction extends gtErrorTestCase { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/testcase/gtErrorTestCaseMethod.php b/scripts/dev/generate-phpt/src/testcase/gtErrorTestCaseMethod.php index fa1c8ca3f1..a0a96cfc74 100644 --- a/scripts/dev/generate-phpt/src/testcase/gtErrorTestCaseMethod.php +++ b/scripts/dev/generate-phpt/src/testcase/gtErrorTestCaseMethod.php @@ -56,4 +56,4 @@ class gtErrorTestCaseMethod extends gtErrorTestCase { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/testcase/gtVariationContainer.php b/scripts/dev/generate-phpt/src/testcase/gtVariationContainer.php index f445d9e7f4..260cba4113 100644 --- a/scripts/dev/generate-phpt/src/testcase/gtVariationContainer.php +++ b/scripts/dev/generate-phpt/src/testcase/gtVariationContainer.php @@ -51,4 +51,4 @@ abstract class gtVariationContainer { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/testcase/gtVariationContainerFunction.php b/scripts/dev/generate-phpt/src/testcase/gtVariationContainerFunction.php index b6a3aa473c..8ac9300a49 100644 --- a/scripts/dev/generate-phpt/src/testcase/gtVariationContainerFunction.php +++ b/scripts/dev/generate-phpt/src/testcase/gtVariationContainerFunction.php @@ -40,4 +40,4 @@ class gtVariationContainerFunction extends gtVariationContainer { } } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/testcase/gtVariationContainerMethod.php b/scripts/dev/generate-phpt/src/testcase/gtVariationContainerMethod.php index 0d24337b3b..68f3a83895 100644 --- a/scripts/dev/generate-phpt/src/testcase/gtVariationContainerMethod.php +++ b/scripts/dev/generate-phpt/src/testcase/gtVariationContainerMethod.php @@ -43,4 +43,4 @@ class gtVariationContainerMethod extends gtVariationContainer { } } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/testcase/gtVariationTestCase.php b/scripts/dev/generate-phpt/src/testcase/gtVariationTestCase.php index e868b80795..67d8533976 100644 --- a/scripts/dev/generate-phpt/src/testcase/gtVariationTestCase.php +++ b/scripts/dev/generate-phpt/src/testcase/gtVariationTestCase.php @@ -1,4 +1,3 @@ - \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseFunction.php b/scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseFunction.php index 45cbe2046c..3545e5c272 100644 --- a/scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseFunction.php +++ b/scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseFunction.php @@ -61,4 +61,4 @@ class gtVariationTestCaseFunction extends gtVariationTestCase { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseMethod.php b/scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseMethod.php index db923f078a..51160f47f8 100644 --- a/scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseMethod.php +++ b/scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseMethod.php @@ -65,4 +65,4 @@ class gtVariationTestCaseMethod extends gtVariationTestCase { } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/src/texts/functionOrMethodNotSpecified.txt b/scripts/dev/generate-phpt/src/texts/functionOrMethodNotSpecified.txt index b497682cb7..3c80875698 100644 --- a/scripts/dev/generate-phpt/src/texts/functionOrMethodNotSpecified.txt +++ b/scripts/dev/generate-phpt/src/texts/functionOrMethodNotSpecified.txt @@ -1,3 +1 @@ - Please supply a function or method name to be tested. - diff --git a/scripts/dev/generate-phpt/src/texts/methodNotSpecified.txt b/scripts/dev/generate-phpt/src/texts/methodNotSpecified.txt index 1f11a3a1ba..5745d49aef 100644 --- a/scripts/dev/generate-phpt/src/texts/methodNotSpecified.txt +++ b/scripts/dev/generate-phpt/src/texts/methodNotSpecified.txt @@ -1,4 +1,2 @@ - You have given a class name but not supplied a method name to test. The method name is required. - diff --git a/scripts/dev/generate-phpt/src/texts/testTypeNotSpecified.txt b/scripts/dev/generate-phpt/src/texts/testTypeNotSpecified.txt index e83ddbb5c2..054f5807a0 100644 --- a/scripts/dev/generate-phpt/src/texts/testTypeNotSpecified.txt +++ b/scripts/dev/generate-phpt/src/texts/testTypeNotSpecified.txt @@ -1,3 +1 @@ - Please specify basic, error or variation tests. - diff --git a/scripts/dev/generate-phpt/src/texts/unknownClass.txt b/scripts/dev/generate-phpt/src/texts/unknownClass.txt index b0a47ca8b9..4d56d95f20 100644 --- a/scripts/dev/generate-phpt/src/texts/unknownClass.txt +++ b/scripts/dev/generate-phpt/src/texts/unknownClass.txt @@ -1,4 +1,2 @@ - The class name is not a valid PHP class name. Check that the extension containing the class is loaded. - diff --git a/scripts/dev/generate-phpt/src/texts/unknownFunction.txt b/scripts/dev/generate-phpt/src/texts/unknownFunction.txt index 2e76978a52..fa2164a30a 100644 --- a/scripts/dev/generate-phpt/src/texts/unknownFunction.txt +++ b/scripts/dev/generate-phpt/src/texts/unknownFunction.txt @@ -1,4 +1,2 @@ - The function name is not a valid PHP function name. Check that the extension containing the function is loaded. - diff --git a/scripts/dev/generate-phpt/src/texts/unknownMethod.txt b/scripts/dev/generate-phpt/src/texts/unknownMethod.txt index 8cc9eaeda6..3f932a730c 100644 --- a/scripts/dev/generate-phpt/src/texts/unknownMethod.txt +++ b/scripts/dev/generate-phpt/src/texts/unknownMethod.txt @@ -1,4 +1,2 @@ - The method name is not a valid PHP method name. Check that the extension containing the method is loaded. - diff --git a/scripts/dev/generate-phpt/tests/gtBasicTestCaseFunctionTest.php b/scripts/dev/generate-phpt/tests/gtBasicTestCaseFunctionTest.php index fa80c0766d..33a5cb65df 100644 --- a/scripts/dev/generate-phpt/tests/gtBasicTestCaseFunctionTest.php +++ b/scripts/dev/generate-phpt/tests/gtBasicTestCaseFunctionTest.php @@ -21,4 +21,4 @@ class gtBasicTestCaseFunctionTest extends PHPUnit_Framework_TestCase { $this->assertTrue(is_string($fs)); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtBasicTestCaseMethodTest.php b/scripts/dev/generate-phpt/tests/gtBasicTestCaseMethodTest.php index 18768b6294..8a4a23fe50 100644 --- a/scripts/dev/generate-phpt/tests/gtBasicTestCaseMethodTest.php +++ b/scripts/dev/generate-phpt/tests/gtBasicTestCaseMethodTest.php @@ -25,4 +25,4 @@ class gtBasicTestCaseMethodTest extends PHPUnit_Framework_TestCase { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtCodeSnippetTest.php b/scripts/dev/generate-phpt/tests/gtCodeSnippetTest.php index 6d4d5861c3..ca87320224 100644 --- a/scripts/dev/generate-phpt/tests/gtCodeSnippetTest.php +++ b/scripts/dev/generate-phpt/tests/gtCodeSnippetTest.php @@ -12,4 +12,4 @@ class gtCodeSnippetTest extends PHPUnit_Framework_TestCase $this->assertEquals($array[2], '}'); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtCommandLineOptionsTest.php b/scripts/dev/generate-phpt/tests/gtCommandLineOptionsTest.php index 1bf32b4608..a034aeca4c 100644 --- a/scripts/dev/generate-phpt/tests/gtCommandLineOptionsTest.php +++ b/scripts/dev/generate-phpt/tests/gtCommandLineOptionsTest.php @@ -43,4 +43,4 @@ require_once 'PHPUnit/Framework.php'; $clo->parse(array('generate-phpt.php', '-f')); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtErrorTestCaseFunctionTest.php b/scripts/dev/generate-phpt/tests/gtErrorTestCaseFunctionTest.php index c6399168be..0146266a73 100644 --- a/scripts/dev/generate-phpt/tests/gtErrorTestCaseFunctionTest.php +++ b/scripts/dev/generate-phpt/tests/gtErrorTestCaseFunctionTest.php @@ -25,4 +25,4 @@ class gtErrorTestCaseFunctionTest extends PHPUnit_Framework_TestCase { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtErrorTestCaseMethodTest.php b/scripts/dev/generate-phpt/tests/gtErrorTestCaseMethodTest.php index 894a551597..5c9dbfbb30 100644 --- a/scripts/dev/generate-phpt/tests/gtErrorTestCaseMethodTest.php +++ b/scripts/dev/generate-phpt/tests/gtErrorTestCaseMethodTest.php @@ -27,4 +27,4 @@ class gtErrorTestCaseMethodTest extends PHPUnit_Framework_TestCase { $this->assertTrue(is_string($fs)); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtFunctionTest.php b/scripts/dev/generate-phpt/tests/gtFunctionTest.php index 5afcd950d4..f8b17680d4 100644 --- a/scripts/dev/generate-phpt/tests/gtFunctionTest.php +++ b/scripts/dev/generate-phpt/tests/gtFunctionTest.php @@ -68,4 +68,4 @@ class gtFunctionTest extends PHPUnit_Framework_TestCase } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtIfClassHasMethodTest.php b/scripts/dev/generate-phpt/tests/gtIfClassHasMethodTest.php index b9f2410b5d..4494415dea 100644 --- a/scripts/dev/generate-phpt/tests/gtIfClassHasMethodTest.php +++ b/scripts/dev/generate-phpt/tests/gtIfClassHasMethodTest.php @@ -38,4 +38,4 @@ class gtIfClassHasMethodTest extends PHPUnit_Framework_TestCase { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtIsSpecifiedFunctionOrMethodTest.php b/scripts/dev/generate-phpt/tests/gtIsSpecifiedFunctionOrMethodTest.php index a60f77ef37..d86945e85c 100644 --- a/scripts/dev/generate-phpt/tests/gtIsSpecifiedFunctionOrMethodTest.php +++ b/scripts/dev/generate-phpt/tests/gtIsSpecifiedFunctionOrMethodTest.php @@ -38,4 +38,4 @@ class gtIsSpecifiedFunctionOrMethodTest extends PHPUnit_Framework_TestCase { $this->assertEquals($ch->getMessage(), gtText::get('functionOrMethodNotSpecified')); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtIsSpecifiedTestTypeTest.php b/scripts/dev/generate-phpt/tests/gtIsSpecifiedTestTypeTest.php index bc7cf9412d..858e803e8c 100644 --- a/scripts/dev/generate-phpt/tests/gtIsSpecifiedTestTypeTest.php +++ b/scripts/dev/generate-phpt/tests/gtIsSpecifiedTestTypeTest.php @@ -29,4 +29,4 @@ class gtIsSpecifiedTestTypeTest extends PHPUnit_Framework_TestCase { $this->assertEquals($ch->getMessage(), gtText::get('testTypeNotSpecified')); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtIsValidClassTest.php b/scripts/dev/generate-phpt/tests/gtIsValidClassTest.php index 507ca232db..2a18e50fc5 100644 --- a/scripts/dev/generate-phpt/tests/gtIsValidClassTest.php +++ b/scripts/dev/generate-phpt/tests/gtIsValidClassTest.php @@ -38,4 +38,4 @@ class gtIsValidClassTest extends PHPUnit_Framework_TestCase { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtIsValidFunctionTest.php b/scripts/dev/generate-phpt/tests/gtIsValidFunctionTest.php index 07a7038dcc..d0193c4fff 100644 --- a/scripts/dev/generate-phpt/tests/gtIsValidFunctionTest.php +++ b/scripts/dev/generate-phpt/tests/gtIsValidFunctionTest.php @@ -37,4 +37,4 @@ class gtIsValidFunctionTest extends PHPUnit_Framework_TestCase { $this->assertEquals($ch->getMessage(), gtText::get('unknownFunction')); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtIsValidMethodTest.php b/scripts/dev/generate-phpt/tests/gtIsValidMethodTest.php index 0f1b349f4d..4519b0e217 100644 --- a/scripts/dev/generate-phpt/tests/gtIsValidMethodTest.php +++ b/scripts/dev/generate-phpt/tests/gtIsValidMethodTest.php @@ -37,4 +37,4 @@ class gtIsValidMethodTest extends PHPUnit_Framework_TestCase { $this->assertEquals($ch->getMessage(), gtText::get('unknownMethod')); } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtMethodTest.php b/scripts/dev/generate-phpt/tests/gtMethodTest.php index 430161ee1c..8057d6655b 100644 --- a/scripts/dev/generate-phpt/tests/gtMethodTest.php +++ b/scripts/dev/generate-phpt/tests/gtMethodTest.php @@ -79,4 +79,4 @@ class gtMethodTest extends PHPUnit_Framework_TestCase } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtOptionalSectionsTest.php b/scripts/dev/generate-phpt/tests/gtOptionalSectionsTest.php index 541dbdf2dd..4352e68abe 100644 --- a/scripts/dev/generate-phpt/tests/gtOptionalSectionsTest.php +++ b/scripts/dev/generate-phpt/tests/gtOptionalSectionsTest.php @@ -55,4 +55,4 @@ class gtOptionalSectionsTest extends PHPUnit_Framework_TestCase } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtVariationTestCaseFunctionTest.php b/scripts/dev/generate-phpt/tests/gtVariationTestCaseFunctionTest.php index 83178b21e7..6d3a3ad546 100644 --- a/scripts/dev/generate-phpt/tests/gtVariationTestCaseFunctionTest.php +++ b/scripts/dev/generate-phpt/tests/gtVariationTestCaseFunctionTest.php @@ -56,4 +56,4 @@ class gtVariationTestCaseFunctionTest extends PHPUnit_Framework_TestCase { } } -?> \ No newline at end of file +?> diff --git a/scripts/dev/generate-phpt/tests/gtVariationTestCaseMethodTest.php b/scripts/dev/generate-phpt/tests/gtVariationTestCaseMethodTest.php index a074fcceeb..b5c4d64f6a 100644 --- a/scripts/dev/generate-phpt/tests/gtVariationTestCaseMethodTest.php +++ b/scripts/dev/generate-phpt/tests/gtVariationTestCaseMethodTest.php @@ -24,4 +24,4 @@ class gtVariationTestCaseMethodTest extends PHPUnit_Framework_TestCase { } } -?> \ No newline at end of file +?> -- cgit v1.2.1