diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2018-07-23 17:38:26 +0200 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2018-07-23 17:38:26 +0200 |
commit | ba138a3746b3077ebe5b7356b5b49f21cfc30438 (patch) | |
tree | 3e2ebf3ee00efde3e7a223aab64a3ea090b33e2d /scripts/dev/generate-phpt/src/codeSnippets | |
parent | b1864b017860b69f0b20a75fad790c9ab7a4fd1c (diff) | |
download | php-git-ba138a3746b3077ebe5b7356b5b49f21cfc30438.tar.gz |
Removed the generated-tests library, this is a left Zöe's phpruntests repository it seems and never fully implemented. The only times this part of the code has been touched throughout the years has been minor PRs and entire php-src grep commits.
If anything this belongs to the phpruntests.git repository.
Diffstat (limited to 'scripts/dev/generate-phpt/src/codeSnippets')
15 files changed, 0 insertions, 84 deletions
diff --git a/scripts/dev/generate-phpt/src/codeSnippets/array.txt b/scripts/dev/generate-phpt/src/codeSnippets/array.txt deleted file mode 100644 index 69a4af72c1..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/array.txt +++ /dev/null @@ -1,9 +0,0 @@ -$index_array = array(1, 2, 3); -$assoc_array = array(1 => 'one', 2 => 'two'); - -$variation_array = array( - 'empty 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 deleted file mode 100644 index 53db40d30b..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/boolean.txt +++ /dev/null @@ -1,6 +0,0 @@ -$variation_array = array( - 'lowercase true' => true, - '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 deleted file mode 100644 index d116022fb8..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/commentEnd.txt +++ /dev/null @@ -1,2 +0,0 @@ - * - */
\ 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 deleted file mode 100644 index e3466d5a1a..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/commentStart.txt +++ /dev/null @@ -1,2 +0,0 @@ -/** - *
\ 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 deleted file mode 100644 index 7e28494f5b..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/emptyUnsetUndefNull.txt +++ /dev/null @@ -1,11 +0,0 @@ -$unset_var = 10; -unset($unset_var); - -$variation_array = array( - 'unset var' => @$unset_var, - 'undefined var' => @$undefined_var, - 'empty string DQ' => "", - '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 deleted file mode 100644 index 75c2b6cd52..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/float.txt +++ /dev/null @@ -1,7 +0,0 @@ -$variation_array = array( - 'float 10.5' => 10.5, - 'float -10.5' => -10.5, - '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 deleted file mode 100644 index cdd28ae435..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/int.txt +++ /dev/null @@ -1,6 +0,0 @@ -$variation_array = array ( - 'int 0' => 0, - '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 deleted file mode 100644 index ff30235f07..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/loopClose.txt +++ /dev/null @@ -1 +0,0 @@ -}
\ 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 deleted file mode 100644 index 8fd5eb20fd..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/loopStart.txt +++ /dev/null @@ -1 +0,0 @@ -foreach ( $variation_array as $var ) {
\ No newline at end of file diff --git a/scripts/dev/generate-phpt/src/codeSnippets/object.txt b/scripts/dev/generate-phpt/src/codeSnippets/object.txt deleted file mode 100644 index 28ee61bfae..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/object.txt +++ /dev/null @@ -1,25 +0,0 @@ -function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) { - if (error_reporting() != 0) { - // report non-silenced errors - echo "Error: $err_no - $err_msg, $filename($linenum)\n"; - } -} -set_error_handler('test_error_handler'); - - - -class classWithToString -{ - public function __toString() { - return "Class A object"; - } -} - -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/skipif64b.txt b/scripts/dev/generate-phpt/src/codeSnippets/skipif64b.txt deleted file mode 100644 index f05e9808d8..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/skipif64b.txt +++ /dev/null @@ -1 +0,0 @@ -if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only"); diff --git a/scripts/dev/generate-phpt/src/codeSnippets/skipifnot64b.txt b/scripts/dev/generate-phpt/src/codeSnippets/skipifnot64b.txt deleted file mode 100644 index e44071a6a2..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/skipifnot64b.txt +++ /dev/null @@ -1 +0,0 @@ -if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only"); diff --git a/scripts/dev/generate-phpt/src/codeSnippets/skipifnotwin.txt b/scripts/dev/generate-phpt/src/codeSnippets/skipifnotwin.txt deleted file mode 100644 index 75ea3e1ef2..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/skipifnotwin.txt +++ /dev/null @@ -1 +0,0 @@ -if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only"); diff --git a/scripts/dev/generate-phpt/src/codeSnippets/skipifwin.txt b/scripts/dev/generate-phpt/src/codeSnippets/skipifwin.txt deleted file mode 100644 index f712116527..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/skipifwin.txt +++ /dev/null @@ -1 +0,0 @@ -if (substr(PHP_OS, 0, 3) == 'WIN') die("skip this test is not for Windows platforms"); diff --git a/scripts/dev/generate-phpt/src/codeSnippets/string.txt b/scripts/dev/generate-phpt/src/codeSnippets/string.txt deleted file mode 100644 index a1d42376da..0000000000 --- a/scripts/dev/generate-phpt/src/codeSnippets/string.txt +++ /dev/null @@ -1,10 +0,0 @@ -$heredoc = <<<EOT -hello world -EOT; - -$variation_array = array( - 'string DQ' => "string", - 'string SQ' => 'string', - 'mixed case string' => "sTrInG", - 'heredoc' => $heredoc, - );
\ No newline at end of file |