Browse Source

Trim trailing whitespace in *.phpt

pull/3604/merge
Peter Kokot 7 years ago
parent
commit
d7a3edd45d
  1. 36
      Zend/tests/019.phpt
  2. 2
      Zend/tests/add_003.phpt
  3. 2
      Zend/tests/add_007.phpt
  4. 2
      Zend/tests/bug24635.phpt
  5. 4
      Zend/tests/bug26802.phpt
  6. 6
      Zend/tests/bug39438.phpt
  7. 2
      Zend/tests/bug43450.phpt
  8. 2
      Zend/tests/bug45742.phpt
  9. 2
      Zend/tests/bug46196.phpt
  10. 2
      Zend/tests/bug48228.phpt
  11. 4
      Zend/tests/bug63462.phpt
  12. 2
      Zend/tests/bug70785.phpt
  13. 2
      Zend/tests/bug70805.phpt
  14. 2
      Zend/tests/bug70914.phpt
  15. 2
      Zend/tests/bug72543.phpt
  16. BIN
      Zend/tests/cast_to_array.phpt
  17. 2
      Zend/tests/cast_to_double.phpt
  18. BIN
      Zend/tests/cast_to_object.phpt
  19. BIN
      Zend/tests/cast_to_string.phpt
  20. 6
      Zend/tests/class_constants_004.phpt
  21. 2
      Zend/tests/debug_backtrace_with_include_and_this.phpt
  22. 2
      Zend/tests/dereference_001.phpt
  23. 2
      Zend/tests/errmsg_017.phpt
  24. 2
      Zend/tests/errmsg_018.phpt
  25. 2
      Zend/tests/errmsg_019.phpt
  26. 2
      Zend/tests/flexible-heredoc-nowdoc.phpt
  27. 2
      Zend/tests/foreach_shadowed_property.phpt
  28. 2
      Zend/tests/function_exists_basic.phpt
  29. 2
      Zend/tests/function_exists_error.phpt
  30. 6
      Zend/tests/function_exists_variation1.phpt
  31. 2
      Zend/tests/get_defined_functions_basic.phpt
  32. 5
      Zend/tests/get_defined_functions_error.phpt
  33. 2
      Zend/tests/globals_001.phpt
  34. 2
      Zend/tests/globals_004.phpt
  35. 2
      Zend/tests/inter_01.phpt
  36. 2
      Zend/tests/lsb_015.phpt
  37. 2
      Zend/tests/lsb_019.phpt
  38. 2
      Zend/tests/lsb_020.phpt
  39. 2
      Zend/tests/return_types/030.phpt
  40. BIN
      Zend/tests/settype_array.phpt
  41. BIN
      Zend/tests/settype_object.phpt
  42. BIN
      Zend/tests/settype_resource.phpt
  43. BIN
      Zend/tests/settype_string.phpt
  44. 2
      Zend/tests/traits/bugs/abstract-methods04.phpt
  45. 2
      Zend/tests/traits/flattening002.phpt
  46. 2
      Zend/tests/try/try_catch_finally_007.phpt
  47. 2
      ext/ctype/tests/ctype_alpha_basic.phpt
  48. 2
      ext/ctype/tests/ctype_cntrl_basic.phpt
  49. 4
      ext/ctype/tests/ctype_graph_basic.phpt
  50. 2
      ext/ctype/tests/ctype_graph_error.phpt
  51. 4
      ext/ctype/tests/ctype_graph_variation1.phpt
  52. 4
      ext/ctype/tests/ctype_graph_variation2.phpt
  53. 4
      ext/ctype/tests/ctype_graph_variation3.phpt
  54. 4
      ext/ctype/tests/ctype_graph_variation4.phpt
  55. 2
      ext/ctype/tests/ctype_lower_basic.phpt
  56. 2
      ext/ctype/tests/ctype_print_basic.phpt
  57. 6
      ext/ctype/tests/ctype_punct_basic.phpt
  58. 4
      ext/ctype/tests/ctype_punct_error.phpt
  59. 4
      ext/ctype/tests/ctype_punct_variation1.phpt
  60. 4
      ext/ctype/tests/ctype_punct_variation2.phpt
  61. 4
      ext/ctype/tests/ctype_punct_variation3.phpt
  62. 4
      ext/ctype/tests/ctype_punct_variation4.phpt
  63. 2
      ext/ctype/tests/ctype_space_basic.phpt
  64. 4
      ext/ctype/tests/ctype_space_variation1.phpt
  65. 2
      ext/ctype/tests/ctype_upper_basic.phpt
  66. 4
      ext/ctype/tests/ctype_xdigit_basic.phpt
  67. 2
      ext/ctype/tests/ctype_xdigit_error.phpt
  68. 2
      ext/ctype/tests/ctype_xdigit_variation1.phpt
  69. 2
      ext/ctype/tests/ctype_xdigit_variation2.phpt
  70. 2
      ext/ctype/tests/ctype_xdigit_variation3.phpt
  71. 2
      ext/ctype/tests/ctype_xdigit_variation4.phpt
  72. 4
      ext/curl/tests/curl_basic_001.phpt
  73. 4
      ext/curl/tests/curl_basic_011.phpt
  74. 6
      ext/curl/tests/curl_basic_012.phpt
  75. 6
      ext/curl/tests/curl_basic_013.phpt
  76. 4
      ext/curl/tests/curl_basic_017.phpt
  77. 2
      ext/curl/tests/curl_basic_018.phpt
  78. 2
      ext/curl/tests/curl_copy_handle_basic.phpt
  79. BIN
      ext/curl/tests/curl_escape.phpt
  80. 2
      ext/curl/tests/curl_multi_getcontent_error1.phpt
  81. 2
      ext/curl/tests/curl_multi_getcontent_error2.phpt
  82. 2
      ext/curl/tests/curl_multi_getcontent_error3.phpt
  83. 2
      ext/curl/tests/curl_multi_select_basic1.phpt
  84. 2
      ext/curl/tests/curl_write_file.phpt
  85. 2
      ext/curl/tests/curl_write_return.phpt
  86. 2
      ext/curl/tests/curl_writeheader_callback.phpt
  87. 4
      ext/date/tests/DateTimeZone_clone_basic1.phpt
  88. 4
      ext/date/tests/DateTimeZone_clone_basic2.phpt
  89. 2
      ext/date/tests/DateTimeZone_clone_basic3.phpt
  90. 2
      ext/date/tests/DateTimeZone_clone_basic4.phpt
  91. 4
      ext/date/tests/DateTimeZone_compare_basic1.phpt
  92. 4
      ext/date/tests/DateTimeZone_construct_basic.phpt
  93. 4
      ext/date/tests/DateTimeZone_construct_error.phpt
  94. 4
      ext/date/tests/DateTimeZone_construct_variation1.phpt
  95. 4
      ext/date/tests/DateTimeZone_extends_basic1.phpt
  96. 4
      ext/date/tests/DateTimeZone_getName_basic1.phpt
  97. 4
      ext/date/tests/DateTimeZone_getName_error.phpt
  98. 4
      ext/date/tests/DateTimeZone_getOffset_basic1.phpt
  99. 4
      ext/date/tests/DateTimeZone_getOffset_error.phpt
  100. 4
      ext/date/tests/DateTimeZone_getTransitions_basic1.phpt

36
Zend/tests/019.phpt

@ -60,7 +60,7 @@ foreach ($scalar_variables as $scalar_var) {
// destroy the variable using unset
unset( $scalar_var );
// dump and see if its destroyed, expcted: NULL
// dump and see if its destroyed, expcted: NULL
var_dump( $scalar_var );
// check using isset to see if unset, expected: bool(false)
@ -106,11 +106,11 @@ foreach ($array_variables as $array_var) {
var_dump( isset($array_var['non_existent'], $array_var['none']) );
var_dump( empty($array_var['non_existent']) );
// testing empty and isset on arrays
// testing empty and isset on arrays
var_dump( empty($array_var) ); // expecting bool(false), except: array(), which is considered empty
var_dump( isset($array_var) ); // expecting bool(true), except: array(), which is not set
// get the keys of the $array_var
// get the keys of the $array_var
$keys = array_keys($array_var);
// unset each element in the array and see the working of unset, isset & empty
$inner_loop_counter = 1;
@ -130,7 +130,7 @@ foreach ($array_variables as $array_var) {
// calling empty, expected bool(true)
var_dump( empty($array_var[$key_val]) );
// dump the array to see that that array did not get modified
// dump the array to see that that array did not get modified
// because of using isset, empty and unset on its element
var_dump($array_var);
}
@ -184,11 +184,11 @@ foreach ($resources as $resource) {
// now the isset() with both the args as unset
var_dump( isset($resource, $temp_var) ); // expected: bool(false);
// dump the resource to see if there any effect on it
// dump the resource to see if there any effect on it
var_dump($resource);
}
// unset and dump the array containing all the resources to see that
// unset works correctly
// unset works correctly
unset($resources);
var_dump($resources);
var_dump( isset($resources) ); //expected: bool(false)
@ -215,8 +215,8 @@ class Point
}
$point1 = new Point(30,40);
// use unset/empty/isset to check the object
var_dump($point1); // dump the object
// use unset/empty/isset to check the object
var_dump($point1); // dump the object
// check the object and member that is not set
var_dump( isset($point1) ); // expected: bool(true)
@ -229,7 +229,7 @@ $point1->setLable("Point1");
var_dump( isset($point1->$lable) ); //expected: bool(true)
var_dump( empty($point1->$lable) ); //expected: bool(false)
// dump the object to see that obj was not harmed
// dump the object to see that obj was not harmed
// because of the usage of the isset & empty
var_dump($point1);
@ -270,11 +270,11 @@ var_dump($point2);
/* testing variation in operation for isset(), empty() & unset().
Note: Most of the variation for function unset() is testing by a
set of testcases named "Zend/tests/unset_cv??.phpt", only
set of testcases named "Zend/tests/unset_cv??.phpt", only
variation not tested are attempted here */
echo "\n*** Testing possible variation in operation for isset(), empty() & unset() ***\n";
/* unset() variation1: checking unset on static variable inside a function.
/* unset() variation1: checking unset on static variable inside a function.
* unset() destroys the variable only in the context of the rest of a function
* Following calls will restore the previous value of a variable.
*/
@ -286,14 +286,14 @@ function test_unset1() {
$static_var ++;
echo "value of static_var before unset: $static_var\n";
// check using isset and empty
// check using isset and empty
var_dump( isset($static_var) );
var_dump( empty($static_var) );
// unset the static var
unset($static_var);
echo "value of static_var after unset: $static_var\n";
// check using isset and empty
// check using isset and empty
var_dump( isset($static_var) );
var_dump( empty($static_var) );
@ -308,10 +308,10 @@ test_unset1();
echo "\n** Testing unset() variation 2: unset on a variable passed by ref. inside of a function **\n";
/* unset() variation2: Pass by reference
* If a variable that is PASSED BY REFERENCE is unset() inside of a function,
/* unset() variation2: Pass by reference
* If a variable that is PASSED BY REFERENCE is unset() inside of a function,
* only the local variable is destroyed. The variable in the calling environment
* will retain the same value as before unset() was called.
* will retain the same value as before unset() was called.
*/
function test_unset2( &$ref_val ) {
// unset the variable passed
@ -341,14 +341,14 @@ $global_var = 10;
function test_unset3() {
global $global_var;
// check the $global_var using isset and empty
// check the $global_var using isset and empty
var_dump( isset($global_var) );
var_dump( empty($global_var) );
// unset the global var
unset($global_var);
// check the $global_var using isset and empty
// check the $global_var using isset and empty
var_dump( isset($global_var) );
var_dump( empty($global_var) );
}

2
Zend/tests/add_003.phpt

@ -1,5 +1,5 @@
--TEST--
adding arrays to objects
adding arrays to objects
--FILE--
<?php

2
Zend/tests/add_007.phpt

@ -1,5 +1,5 @@
--TEST--
adding strings to arrays
adding strings to arrays
--FILE--
<?php

2
Zend/tests/bug24635.phpt

@ -15,7 +15,7 @@ class SectionClass {
$this->Comment = $comment;
}
function __destruct() {
out($this->Comment); // this line doesn't crash PHP
out($this->Comment); // this line doesn't crash PHP
out("\n<!-- End Section: " . $this->Comment . "-->"); // this line
}
}

4
Zend/tests/bug26802.phpt

@ -21,8 +21,8 @@ class foo
}
}
/* The following is a BC break with PHP 4 where it would
* call foo::fail. In PHP 5 we first evaluate static class
/* The following is a BC break with PHP 4 where it would
* call foo::fail. In PHP 5 we first evaluate static class
* properties and then do the function call.
*/
$method = 'foo_func';

6
Zend/tests/bug39438.phpt

@ -22,9 +22,9 @@ $test2=array(
'typo3' =>'',
'php' =>'',
'cms' => ''
),
'conflicts' => array('' =>'')
),
),
'conflicts' => array('' =>'')
),
'authorname' => 'Mirko Balluff',
'authoremail' => 'balluff@amt1.de',
'ownerusername' => 'amt1',

2
Zend/tests/bug43450.phpt

@ -5,7 +5,7 @@ opcache.enable_cli=0
--FILE--
<?php
class Foo
class Foo
{
public function __toString()
{

2
Zend/tests/bug45742.phpt

@ -1,5 +1,5 @@
--TEST--
Bug #45742 Wrong class array inpretetion using constant indexes
Bug #45742 Wrong class array inpretetion using constant indexes
--FILE--
<?php
class Constants {

2
Zend/tests/bug46196.phpt

@ -5,7 +5,7 @@ Olivier Doucet
--FILE--
<?php
/* Prototype : void restore_error_handler(void)
* Description: Restores the previously defined error handler function
* Description: Restores the previously defined error handler function
* Source code: Zend/zend_builtin_functions.c
* Alias to functions:
*/

2
Zend/tests/bug48228.phpt

@ -7,7 +7,7 @@ function do_throw() {
throw new Exception();
}
class aa
class aa
{
function check()
{

4
Zend/tests/bug63462.phpt

@ -11,8 +11,8 @@ class Test {
public function __construct() {
unset(
$this->publicProperty,
$this->protectedProperty,
$this->publicProperty,
$this->protectedProperty,
$this->privateProperty
);
}

2
Zend/tests/bug70785.phpt

@ -8,7 +8,7 @@ set_error_handler(function($no, $msg) {
});
try {
if ($a === null) { // ZEND_VM_SMART_BRANCH
if ($a === null) { // ZEND_VM_SMART_BRANCH
undefined_function('Null');
}
} catch (Exception $e) {

2
Zend/tests/bug70805.phpt

@ -37,7 +37,7 @@ $t[] = &$t;
unset($t); // This is used to trigger C::__destruct while doing gc_colloct_roots
$e = $a;
unset($a); // This one can not be putted into roots buf because it's full, thus gc_colloct_roots will be called,
unset($a); // This one can not be putted into roots buf because it's full, thus gc_colloct_roots will be called,
// but C::__destructor which is called in gc_colloct_roots will put $a into buf
// which will make $a be putted into gc roots buf twice
var_dump(gc_collect_cycles());

2
Zend/tests/bug70914.phpt

@ -1,5 +1,5 @@
--TEST--
Bug #70914 zend_throw_or_error() format string vulnerability
Bug #70914 zend_throw_or_error() format string vulnerability
--SKIPIF--
<?php
if (!extension_loaded("pdo_sqlite")) {

2
Zend/tests/bug72543.phpt

@ -15,7 +15,7 @@ function change_copy($copy) {
$data = [
'a' => [
'b' => [],
],
],
];
create_references($data);

BIN
Zend/tests/cast_to_array.phpt

2
Zend/tests/cast_to_double.phpt

@ -1,5 +1,5 @@
--TEST--
casting different variables to double
casting different variables to double
--INI--
precision=14
--FILE--

BIN
Zend/tests/cast_to_object.phpt

BIN
Zend/tests/cast_to_string.phpt

6
Zend/tests/class_constants_004.phpt

@ -21,9 +21,9 @@ $const = __NAMESPACE__ .'\\foo'; // class
$const2 = __NAMESPACE__ .'\\Ifoo'; // interface
var_dump( foo,
\foo\foo,
namespace\foo,
\foo\foo::foo,
\foo\foo,
namespace\foo,
\foo\foo::foo,
$const::foo,
\foo,
constant('foo'),

2
Zend/tests/debug_backtrace_with_include_and_this.phpt

@ -1,5 +1,5 @@
--TEST--
debug_backtrace segmentation fault with include and error handler
debug_backtrace segmentation fault with include and error handler
--FILE--
<?php
class CLWrapper {

2
Zend/tests/dereference_001.phpt

@ -12,7 +12,7 @@ var_dump(a()[1][0]); // int(5)
function b() {
return array();
}
var_dump(b()[0]); // Notice: Undefined offset: 0
var_dump(b()[0]); // Notice: Undefined offset: 0
class foo {
public $y = 1;

2
Zend/tests/errmsg_017.phpt

@ -1,5 +1,5 @@
--TEST--
errmsg: __unset() must take exactly 1 argument
errmsg: __unset() must take exactly 1 argument
--FILE--
<?php

2
Zend/tests/errmsg_018.phpt

@ -1,5 +1,5 @@
--TEST--
errmsg: static abstract function
errmsg: static abstract function
--FILE--
<?php

2
Zend/tests/errmsg_019.phpt

@ -1,5 +1,5 @@
--TEST--
errmsg: __destruct() cannot take arguments
errmsg: __destruct() cannot take arguments
--FILE--
<?php

2
Zend/tests/flexible-heredoc-nowdoc.phpt

@ -15,7 +15,7 @@ var_dump(<<<END
// Insufficient indentation is fine if the line is whitespace-only
// Using eval() here to avoid issue with trailing whitespace trimming
var_dump(eval("return <<<END
\x20
\x20
\x20\x20END;"));
echo <<<'END'

2
Zend/tests/foreach_shadowed_property.phpt

@ -2,7 +2,7 @@
Foreach over object with shadowed private property
--FILE--
<?php
class Test {
private $prop = "Test";

2
Zend/tests/function_exists_basic.phpt

@ -1,5 +1,5 @@
--TEST--
function_exists function : basic functionality
function_exists function : basic functionality
--FILE--
<?php
/*

2
Zend/tests/function_exists_error.phpt

@ -1,5 +1,5 @@
--TEST--
Test function_exists() function : error conditions
Test function_exists() function : error conditions
--FILE--
<?php
/*

6
Zend/tests/function_exists_variation1.phpt

@ -3,10 +3,10 @@ Test function_exists() function : usage variations - test values for $str argume
--FILE--
<?php
/*
/*
* proto bool function_exists(string function_name)
* Function is implemented in Zend/zend_builtin_functions.c
*/
*/
echo "*** Testing function_exists() function: with unexpected inputs for 'str' argument ***\n";
@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
}
}
}
//getting the resource

2
Zend/tests/get_defined_functions_basic.phpt

@ -1,5 +1,5 @@
--TEST--
get_defined_functions() function : basic functionality
get_defined_functions() function : basic functionality
--FILE--
<?php

5
Zend/tests/get_defined_functions_error.phpt

@ -1,5 +1,5 @@
--TEST--
Test get_defined_functions() function : error conditions
Test get_defined_functions() function : error conditions
--FILE--
<?php
@ -17,7 +17,7 @@ $extra_arg = 10;
$extra_arg2 = 20;
var_dump( get_defined_functions($extra_arg, $extra_arg2) );
?>
?>
===Done===
--EXPECTF--
*** Testing get_defined_functions() : error conditions ***
@ -26,5 +26,4 @@ var_dump( get_defined_functions($extra_arg, $extra_arg2) );
Warning: get_defined_functions() expects at most 1 parameter, 2 given in %s on line %d
NULL
===Done===

2
Zend/tests/globals_001.phpt

@ -1,5 +1,5 @@
--TEST--
globals in global scope
globals in global scope
--INI--
variables_order="egpcs"
--FILE--

2
Zend/tests/globals_004.phpt

@ -1,5 +1,5 @@
--TEST--
globals in local scope - 3
globals in local scope - 3
--INI--
variables_order="egpcs"
--FILE--

2
Zend/tests/inter_01.phpt

@ -1,5 +1,5 @@
--TEST--
Inherited constant from interface
Inherited constant from interface
--FILE--
<?php
interface foo {

2
Zend/tests/lsb_015.phpt

@ -1,5 +1,5 @@
--TEST--
ZE2 Late Static Binding with exceptions
ZE2 Late Static Binding with exceptions
--FILE--
<?php
function foo() {

2
Zend/tests/lsb_019.phpt

@ -1,5 +1,5 @@
--TEST--
ZE2 Late Static Binding properties and methods declared as protected and overridden as public.
ZE2 Late Static Binding properties and methods declared as protected and overridden as public.
--FILE--
<?php
class TestClass {

2
Zend/tests/lsb_020.phpt

@ -1,5 +1,5 @@
--TEST--
ZE2 Late Static Binding properties and methods declared as public and overridden as public.
ZE2 Late Static Binding properties and methods declared as public and overridden as public.
--FILE--
<?php
class TestClass {

2
Zend/tests/return_types/030.phpt

@ -1,5 +1,5 @@
--TEST--
Nullable return value
Nullable return value
--FILE--
<?php
function foo($x) : ?array {

BIN
Zend/tests/settype_array.phpt

BIN
Zend/tests/settype_object.phpt

BIN
Zend/tests/settype_resource.phpt

BIN
Zend/tests/settype_string.phpt

2
Zend/tests/traits/bugs/abstract-methods04.phpt

@ -1,5 +1,5 @@
--TEST--
Abstract Trait Methods should behave like common abstract methods and
Abstract Trait Methods should behave like common abstract methods and
implementstion may be provided by other traits. Sorting order shouldn't influence result.
--FILE--
<?php

2
Zend/tests/traits/flattening002.phpt

@ -1,5 +1,5 @@
--TEST--
parent:: works like in a method defined without traits.
parent:: works like in a method defined without traits.
--FILE--
<?php
error_reporting(E_ALL);

2
Zend/tests/try/try_catch_finally_007.phpt

@ -19,7 +19,7 @@ function foo($ret = FALSE) {
}
} catch (Exception $e) {
goto local;
local:
local:
var_dump("catched");
if ($ret) return "return";
} finally {

2
ext/ctype/tests/ctype_alpha_basic.phpt

@ -1,5 +1,5 @@
--TEST--
Test ctype_alpha() function : basic functionality
Test ctype_alpha() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--

2
ext/ctype/tests/ctype_cntrl_basic.phpt

@ -1,5 +1,5 @@
--TEST--
Test ctype_cntrl() function : basic functionality
Test ctype_cntrl() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--

4
ext/ctype/tests/ctype_graph_basic.phpt

@ -1,11 +1,11 @@
--TEST--
Test ctype_graph() function : basic functionality
Test ctype_graph() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
/* Prototype : bool ctype_graph(mixed $c)
* Description: Checks for any printable character(s) except space
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
*/

2
ext/ctype/tests/ctype_graph_error.phpt

@ -5,7 +5,7 @@ Test ctype_graph() function : error conditions - incorrect number of arguments
--FILE--
<?php
/* Prototype : bool ctype_graph(mixed $c)
* Description: Checks for any printable character(s) except space
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
*/

4
ext/ctype/tests/ctype_graph_variation1.phpt

@ -5,8 +5,8 @@ Test ctype_graph() function : usage variations - different data types as $c arg
--FILE--
<?php
/* Prototype : bool ctype_graph(mixed $c)
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
*/
/*

4
ext/ctype/tests/ctype_graph_variation2.phpt

@ -5,8 +5,8 @@ Test ctype_graph() function : usage variations - different integers
--FILE--
<?php
/* Prototype : bool ctype_graph(mixed $c)
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
*/
/*

4
ext/ctype/tests/ctype_graph_variation3.phpt

@ -5,8 +5,8 @@ Test ctype_graph() function : usage variations - different strings
--FILE--
<?php
/* Prototype : bool ctype_graph(mixed $c)
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
*/
/*

4
ext/ctype/tests/ctype_graph_variation4.phpt

@ -5,8 +5,8 @@ Test ctype_graph() function : usage variations - octal and hexadecimal values
--FILE--
<?php
/* Prototype : bool ctype_graph(mixed $c)
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
*/
/*

2
ext/ctype/tests/ctype_lower_basic.phpt

@ -1,5 +1,5 @@
--TEST--
Test ctype_lower() function : basic functionality
Test ctype_lower() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--

2
ext/ctype/tests/ctype_print_basic.phpt

@ -1,5 +1,5 @@
--TEST--
Test ctype_print() function : basic functionality
Test ctype_print() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--

6
ext/ctype/tests/ctype_punct_basic.phpt

@ -1,12 +1,12 @@
--TEST--
Test ctype_punct() function : basic functionality
Test ctype_punct() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
/* Prototype : bool ctype_punct(mixed $c)
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Source code: ext/ctype/ctype.c
*/

4
ext/ctype/tests/ctype_punct_error.phpt

@ -5,8 +5,8 @@ Test ctype_punct() function : error conditions - incorrect number of args
--FILE--
<?php
/* Prototype : bool ctype_punct(mixed $c)
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Source code: ext/ctype/ctype.c
*/

4
ext/ctype/tests/ctype_punct_variation1.phpt

@ -5,8 +5,8 @@ Test ctype_punct() function : usage variations - different data types as $c argu
--FILE--
<?php
/* Prototype : bool ctype_punct(mixed $c)
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Source code: ext/ctype/ctype.c
*/

4
ext/ctype/tests/ctype_punct_variation2.phpt

@ -5,8 +5,8 @@ Test ctype_punct() function : usage variations - different integers
--FILE--
<?php
/* Prototype : bool ctype_punct(mixed $c)
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Source code: ext/ctype/ctype.c
*/

4
ext/ctype/tests/ctype_punct_variation3.phpt

@ -5,8 +5,8 @@ Test ctype_punct() function : usage variations - different punctuation
--FILE--
<?php
/* Prototype : bool ctype_punct(mixed $c)
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Source code: ext/ctype/ctype.c
*/

4
ext/ctype/tests/ctype_punct_variation4.phpt

@ -5,8 +5,8 @@ Test ctype_punct() function : usage variations - Octal and Hexadecimal values
--FILE--
<?php
/* Prototype : bool ctype_punct(mixed $c)
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Source code: ext/ctype/ctype.c
*/

2
ext/ctype/tests/ctype_space_basic.phpt

@ -1,5 +1,5 @@
--TEST--
Test ctype_space() function : basic functionality
Test ctype_space() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--

4
ext/ctype/tests/ctype_space_variation1.phpt

@ -62,7 +62,7 @@ $inputs = array(
false,
TRUE,
FALSE,
// empty data
/*16*/ "",
'',
@ -72,7 +72,7 @@ $inputs = array(
/*19*/ "\n\t\r",
' ',
$heredoc,
// object data
/*22*/ new classA(),

2
ext/ctype/tests/ctype_upper_basic.phpt

@ -1,5 +1,5 @@
--TEST--
Test ctype_upper() function : basic functionality
Test ctype_upper() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--

4
ext/ctype/tests/ctype_xdigit_basic.phpt

@ -1,11 +1,11 @@
--TEST--
Test ctype_xdigit() function : basic functionality
Test ctype_xdigit() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
/* Prototype : bool ctype_xdigit(mixed $c)
* Description: Checks for character(s) representing a hexadecimal digit
* Description: Checks for character(s) representing a hexadecimal digit
* Source code: ext/ctype/ctype.c
*/

2
ext/ctype/tests/ctype_xdigit_error.phpt

@ -5,7 +5,7 @@ Test ctype_xdigit() function : error conditions - Incorrect number of args
--FILE--
<?php
/* Prototype : bool ctype_xdigit(mixed $c)
* Description: Checks for character(s) representing a hexadecimal digit
* Description: Checks for character(s) representing a hexadecimal digit
* Source code: ext/ctype/ctype.c
*/

2
ext/ctype/tests/ctype_xdigit_variation1.phpt

@ -5,7 +5,7 @@ Test ctype_xdigit() function : usage variations - different data typse as $c arg
--FILE--
<?php
/* Prototype : bool ctype_xdigit(mixed $c)
* Description: Checks for character(s) representing a hexadecimal digit
* Description: Checks for character(s) representing a hexadecimal digit
* Source code: ext/ctype/ctype.c
*/

2
ext/ctype/tests/ctype_xdigit_variation2.phpt

@ -5,7 +5,7 @@ Test ctype_xdigit() function : usage variations - different integers
--FILE--
<?php
/* Prototype : bool ctype_xdigit(mixed $c)
* Description: Checks for character(s) representing a hexadecimal digit
* Description: Checks for character(s) representing a hexadecimal digit
* Source code: ext/ctype/ctype.c
*/

2
ext/ctype/tests/ctype_xdigit_variation3.phpt

@ -5,7 +5,7 @@ Test ctype_xdigit() function : usage variations - Different strings
--FILE--
<?php
/* Prototype : bool ctype_xdigit(mixed $c)
* Description: Checks for character(s) representing a hexadecimal digit
* Description: Checks for character(s) representing a hexadecimal digit
* Source code: ext/ctype/ctype.c
*/

2
ext/ctype/tests/ctype_xdigit_variation4.phpt

@ -5,7 +5,7 @@ Test ctype_xdigit() function : usage variations - heaxadecimal and octal values
--FILE--
<?php
/* Prototype : bool ctype_xdigit(mixed $c)
* Description: Checks for character(s) representing a hexadecimal digit
* Description: Checks for character(s) representing a hexadecimal digit
* Source code: ext/ctype/ctype.c
*/

4
ext/curl/tests/curl_basic_001.phpt

@ -1,5 +1,5 @@
--TEST--
Test curl_exec() function with basic functionality
Test curl_exec() function with basic functionality
--CREDITS--
Sebastian Deutsch <sebastian.deutsch@9elements.com>
TestFest 2009 - AFUP - Jean-Marc Fontaine <jmf@durcommefaire.net>
@ -8,7 +8,7 @@ TestFest 2009 - AFUP - Jean-Marc Fontaine <jmf@durcommefaire.net>
--FILE--
<?php
/* Prototype : bool curl_exec(resource ch)
* Description: Perform a cURL session
* Description: Perform a cURL session
* Source code: ext/curl/interface.c
* Alias to functions:
*/

4
ext/curl/tests/curl_basic_011.phpt

@ -1,7 +1,7 @@
--TEST--
Test curl_opt() function with COOKIE
Test curl_opt() function with COOKIE
--CREDITS--
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--

6
ext/curl/tests/curl_basic_012.phpt

@ -1,7 +1,7 @@
--TEST--
Test curl_opt() function with CURLOPT_HTTP_VERSION/CURL_HTTP_VERSION_1_0
Test curl_opt() function with CURLOPT_HTTP_VERSION/CURL_HTTP_VERSION_1_0
--CREDITS--
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
@ -25,7 +25,7 @@ TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
$curl_content = curl_exec($ch);
curl_close($ch);

6
ext/curl/tests/curl_basic_013.phpt

@ -1,7 +1,7 @@
--TEST--
Test curl_opt() function with CURLOPT_HTTP_VERSION/CURL_HTTP_VERSION_1_1
Test curl_opt() function with CURLOPT_HTTP_VERSION/CURL_HTTP_VERSION_1_1
--CREDITS--
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
@ -25,7 +25,7 @@ TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
$curl_content = curl_exec($ch);
curl_close($ch);

4
ext/curl/tests/curl_basic_017.phpt

@ -1,5 +1,5 @@
--TEST--
Test curl_multi_exec() function with basic functionality
Test curl_multi_exec() function with basic functionality
--CREDITS--
TestFest 2009 - AFUP - Thomas Rabaix <thomas.rabaix@gmail.com>
--SKIPIF--
@ -7,7 +7,7 @@ TestFest 2009 - AFUP - Thomas Rabaix <thomas.rabaix@gmail.com>
--FILE--
<?php
/* Prototype : bool curl_multi_exec(resource ch)
* Description: Perform a cURL session
* Description: Perform a cURL session
* Source code: ext/curl/multi.c
* Alias to functions:
*/

2
ext/curl/tests/curl_basic_018.phpt

@ -1,5 +1,5 @@
--TEST--
Test curl_setopt() with curl_multi function with basic functionality
Test curl_setopt() with curl_multi function with basic functionality
--CREDITS--
TestFest 2009 - AFUP - Thomas Rabaix <thomas.rabaix@gmail.com>
--SKIPIF--

2
ext/curl/tests/curl_copy_handle_basic.phpt

@ -1,5 +1,5 @@
--TEST--
Test curl_copy_handle() function with basic functionality
Test curl_copy_handle() function with basic functionality
--CREDITS--
Francesco Fullone ff@ideato.it
#PHPTestFest Cesena Italia on 2009-06-20

BIN
ext/curl/tests/curl_escape.phpt

2
ext/curl/tests/curl_multi_getcontent_error1.phpt

@ -1,5 +1,5 @@
--TEST--
Curl_multi_getcontent() error test
Curl_multi_getcontent() error test
--CREDITS--
Rein Velt (rein@velt.org)
#TestFest Utrecht 20090509

2
ext/curl/tests/curl_multi_getcontent_error2.phpt

@ -1,5 +1,5 @@
--TEST--
Curl_multi_getcontent() error test
Curl_multi_getcontent() error test
--CREDITS--
Rein Velt (rein@velt.org)
#TestFest Utrecht 20090509

2
ext/curl/tests/curl_multi_getcontent_error3.phpt

@ -1,5 +1,5 @@
--TEST--
Curl_multi_getcontent() error test
Curl_multi_getcontent() error test
--CREDITS--
Rein Velt (rein@velt.org)
#TestFest Utrecht 20090509

2
ext/curl/tests/curl_multi_select_basic1.phpt

@ -8,7 +8,7 @@ Ivo Jansch <ivo@ibuildings.com>
--FILE--
<?php
/* Prototype : resource curl_multi_select($mh, $timeout=1.0])
* Description : Get all the sockets associated with the cURL extension, which can then be
* Description : Get all the sockets associated with the cURL extension, which can then be
* "selected"
* Source code : ?
* Test documentation: http://wiki.php.net/qa/temp/ext/curl

2
ext/curl/tests/curl_write_file.phpt

@ -1,5 +1,5 @@
--TEST--
Test curl option CURLOPT_FILE
Test curl option CURLOPT_FILE
--CREDITS--
Mathieu Kooiman <mathieuk@gmail.com>
Dutch UG, TestFest 2009, Utrecht

2
ext/curl/tests/curl_write_return.phpt

@ -1,5 +1,5 @@
--TEST--
Test curl option CURLOPT_RETURNTRANSFER
Test curl option CURLOPT_RETURNTRANSFER
--CREDITS--
Mathieu Kooiman <mathieuk@gmail.com>
Dutch UG, TestFest 2009, Utrecht

2
ext/curl/tests/curl_writeheader_callback.phpt

@ -1,5 +1,5 @@
--TEST--
Test curl option CURLOPT_HEADERFUNCTION
Test curl option CURLOPT_HEADERFUNCTION
--CREDITS--
Mathieu Kooiman <mathieuk@gmail.com>
Dutch UG, TestFest 2009, Utrecht

4
ext/date/tests/DateTimeZone_clone_basic1.phpt

@ -3,7 +3,7 @@ Test clone on DateTimeZone objects
--FILE--
<?php
//Set the default time zone
//Set the default time zone
date_default_timezone_set('Europe/London');
echo "*** Testing clone on DateTime objects ***\n";
@ -11,7 +11,7 @@ echo "*** Testing clone on DateTime objects ***\n";
// Create a DateTimeZone object..
$orig = new DateTimeZone("GMT");
// ..create a clone of it ..Clone
// ..create a clone of it ..Clone
$clone = clone $orig;
var_dump($orig);

4
ext/date/tests/DateTimeZone_clone_basic2.phpt

@ -1,8 +1,8 @@
--TEST--
Testing clone on objects whoose class derived from DateTimeZone class
Testing clone on objects whoose class derived from DateTimeZone class
--FILE--
<?php
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
class DateTimeZoneExt1 extends DateTimeZone {

2
ext/date/tests/DateTimeZone_clone_basic3.phpt

@ -2,7 +2,7 @@
Test clone of DateTimeZOne objects
--FILE--
<?php
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
echo "*** Testing clone on DateTime objects ***\n";

2
ext/date/tests/DateTimeZone_clone_basic4.phpt

@ -2,7 +2,7 @@
Test clone of DateTimeZone derived objects with __clone magic method
--FILE--
<?php
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
class DateTimeZoneExt1 extends DateTimeZone {

4
ext/date/tests/DateTimeZone_compare_basic1.phpt

@ -3,11 +3,11 @@ Test of compare object handler for DateTime objects
--FILE--
<?php
// NB: DateTimeZone class does not define a customized compare class handler so standard object handler will be used
// NB: DateTimeZone class does not define a customized compare class handler so standard object handler will be used
echo "Simple test for DateTimeZone compare object handler\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
class DateTimeZoneExt1 extends DateTimeZone {

4
ext/date/tests/DateTimeZone_construct_basic.phpt

@ -1,5 +1,5 @@
--TEST--
Test new DateTimeZone() : basic functionality
Test new DateTimeZone() : basic functionality
--FILE--
<?php
/* Prototype : DateTimeZone::__construct ( string $timezone )
@ -8,7 +8,7 @@ Test new DateTimeZone() : basic functionality
* Alias to functions:
*/
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
echo "*** Testing new DateTimeZone() : basic functionality ***\n";

4
ext/date/tests/DateTimeZone_construct_error.phpt

@ -1,5 +1,5 @@
--TEST--
Test new DateTimeZone() : error conditions
Test new DateTimeZone() : error conditions
--FILE--
<?php
/* Prototype : DateTimeZone::__construct ( string $timezone )
@ -7,7 +7,7 @@ Test new DateTimeZone() : error conditions
* Source code: ext/date/php_date.c
* Alias to functions:
*/
//Set the default time zone
//Set the default time zone
date_default_timezone_set("GMT");
echo "*** Testing DateTimeZone() : error conditions ***\n";

4
ext/date/tests/DateTimeZone_construct_variation1.phpt

@ -10,7 +10,7 @@ Test DateTime::__construct() function : usage variation - Passing unexpected val
echo "*** Testing DateTime::__construct() : usage variation - unexpected values to first argument \$timezone***\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
//get an unset variable
@ -89,7 +89,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
// resource
// resource
'resource' => $file_handle
);

4
ext/date/tests/DateTimeZone_extends_basic1.phpt

@ -1,9 +1,9 @@
--TEST--
Test DateTimeZone class inheritance
Test DateTimeZone class inheritance
--FILE--
<?php
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
echo "*** Testing basic DateTimeZone inheritance() ***\n";

4
ext/date/tests/DateTimeZone_getName_basic1.phpt

@ -1,5 +1,5 @@
--TEST--
Test DateTimeZone::getName() function : basic functionality
Test DateTimeZone::getName() function : basic functionality
--FILE--
<?php
/* Prototype : public string DateTimeZone::getName ( void )
@ -10,7 +10,7 @@ Test DateTimeZone::getName() function : basic functionality
echo "*** Testing DateTimeZone::getName() : basic functionality ***\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("GMT");
$tz1 = new DateTimeZone("Europe/London");

4
ext/date/tests/DateTimeZone_getName_error.phpt

@ -1,5 +1,5 @@
--TEST--
Test DateTimeZone::getName() function : error conditions
Test DateTimeZone::getName() function : error conditions
--FILE--
<?php
/* Prototype : public string DateTimeZone::getName ( void )
@ -8,7 +8,7 @@ Test DateTimeZone::getName() function : error conditions
* Alias to functions: timezone_name_get()
*/
//Set the default time zone
//Set the default time zone
date_default_timezone_set("GMT");
$tz = new DateTimeZone("Europe/London");

4
ext/date/tests/DateTimeZone_getOffset_basic1.phpt

@ -1,5 +1,5 @@
--TEST--
Test DateTimeZone::getOffset() function : basic functionality
Test DateTimeZone::getOffset() function : basic functionality
--FILE--
<?php
/* Prototype : int DateTimeZone::getOffset ( DateTime $datetime )
@ -10,7 +10,7 @@ Test DateTimeZone::getOffset() function : basic functionality
echo "*** Testing DateTimeZone::getOffset() : basic functionality ***\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("GMT");
$tz1 = new DateTimeZone("Europe/London");

4
ext/date/tests/DateTimeZone_getOffset_error.phpt

@ -1,5 +1,5 @@
--TEST--
Test DateTimeZone::getOffset() function : error conditions
Test DateTimeZone::getOffset() function : error conditions
--FILE--
<?php
/* Prototype : int DateTimeZone::getOffset ( DateTime $datetime )
@ -8,7 +8,7 @@ Test DateTimeZone::getOffset() function : error conditions
* Alias to functions: timezone_offset_get()
*/
//Set the default time zone
//Set the default time zone
date_default_timezone_set("GMT");
$tz = new DateTimeZone("Europe/London");

4
ext/date/tests/DateTimeZone_getTransitions_basic1.phpt

@ -1,5 +1,5 @@
--TEST--
Test DateTimeZone::getTransitions() function : basic functionality
Test DateTimeZone::getTransitions() function : basic functionality
--FILE--
<?php
/* Prototype : array DateTimeZone::getTransitions ()
@ -10,7 +10,7 @@ Test DateTimeZone::getTransitions() function : basic functionality
echo "*** Testing DateTimeZone::getTransitions() : basic functionality ***\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
// Create a DateTimeZone object

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save