diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 17:23:43 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 19:44:14 +0200 |
commit | 17ccbeec3242b80f84fbf6b3acd58421ef003b02 (patch) | |
tree | 8fed8d7515c6603fd4a50eb0f8177883bc6da336 /tests/basic | |
parent | cc7215f48f66982f0b7799c47d8fa4c09a32a3c7 (diff) | |
download | php-git-17ccbeec3242b80f84fbf6b3acd58421ef003b02.tar.gz |
Trim trailing whitespace in *.phpt
Diffstat (limited to 'tests/basic')
26 files changed, 45 insertions, 45 deletions
diff --git a/tests/basic/003.phpt b/tests/basic/003.phpt index 43d3be1d9e..fb906e051d 100644 --- a/tests/basic/003.phpt +++ b/tests/basic/003.phpt @@ -5,7 +5,7 @@ a=Hello+World --GET-- b=Hello+Again+World&c=Hi+Mom --FILE-- -<?php +<?php error_reporting(0); echo "post-a=({$_POST['a']}) get-b=({$_GET['b']}) get-c=({$_GET['c']})"?> --EXPECT-- diff --git a/tests/basic/004.phpt b/tests/basic/004.phpt index c381e5009f..4225c105b5 100644 --- a/tests/basic/004.phpt +++ b/tests/basic/004.phpt @@ -3,7 +3,7 @@ Two variables in POST data --POST-- a=Hello+World&b=Hello+Again+World --FILE-- -<?php +<?php error_reporting(0); echo "{$_POST['a']} {$_POST['b']}" ?> --EXPECT-- diff --git a/tests/basic/005.phpt b/tests/basic/005.phpt index 742e0ca4b1..230ba42bb1 100644 --- a/tests/basic/005.phpt +++ b/tests/basic/005.phpt @@ -3,7 +3,7 @@ Three variables in POST data --POST-- a=Hello+World&b=Hello+Again+World&c=1 --FILE-- -<?php +<?php error_reporting(0); echo "{$_POST['a']} {$_POST['b']} {$_POST['c']}"?> --EXPECT-- diff --git a/tests/basic/011.phpt b/tests/basic/011.phpt index 79256746fe..b5c769d9bd 100644 --- a/tests/basic/011.phpt +++ b/tests/basic/011.phpt @@ -5,7 +5,7 @@ register_argc_argv=1 --GET-- ab+cd+ef+123+test --FILE-- -<?php +<?php $argc = $_SERVER['argc']; $argv = $_SERVER['argv']; diff --git a/tests/basic/012.phpt b/tests/basic/012.phpt index 5c10c7c222..038d4beff9 100644 --- a/tests/basic/012.phpt +++ b/tests/basic/012.phpt @@ -8,7 +8,7 @@ variables_order=GPS --ARGS-- ab cd ef 123 test --FILE-- -<?php +<?php $argc = $_SERVER['argc']; $argv = $_SERVER['argv']; diff --git a/tests/basic/013.phpt b/tests/basic/013.phpt index 376cc06dd4..0cd81a7185 100644 --- a/tests/basic/013.phpt +++ b/tests/basic/013.phpt @@ -4,7 +4,7 @@ POST Method test and arrays a[]=1 --FILE-- <?php -var_dump($_POST['a']); +var_dump($_POST['a']); ?> --EXPECT-- array(1) { diff --git a/tests/basic/014.phpt b/tests/basic/014.phpt index 7288c44a92..1282aad3e4 100644 --- a/tests/basic/014.phpt +++ b/tests/basic/014.phpt @@ -4,7 +4,7 @@ POST Method test and arrays - 2 a[]=1&a[]=1 --FILE-- <?php -var_dump($_POST['a']); +var_dump($_POST['a']); ?> --EXPECT-- array(2) { diff --git a/tests/basic/015.phpt b/tests/basic/015.phpt index eecbaf1302..c74e1e414d 100644 --- a/tests/basic/015.phpt +++ b/tests/basic/015.phpt @@ -1,10 +1,10 @@ --TEST-- -POST Method test and arrays - 3 +POST Method test and arrays - 3 --POST-- a[]=1&a[0]=5 --FILE-- <?php -var_dump($_POST['a']); +var_dump($_POST['a']); ?> --EXPECT-- array(1) { diff --git a/tests/basic/016.phpt b/tests/basic/016.phpt index b34fd1b1dc..7c81444518 100644 --- a/tests/basic/016.phpt +++ b/tests/basic/016.phpt @@ -1,10 +1,10 @@ --TEST-- -POST Method test and arrays - 4 +POST Method test and arrays - 4 --POST-- a[a]=1&a[b]=3 --FILE-- <?php -var_dump($_POST['a']); +var_dump($_POST['a']); ?> --EXPECT-- array(2) { diff --git a/tests/basic/017.phpt b/tests/basic/017.phpt index d514726d18..ca0a2d6491 100644 --- a/tests/basic/017.phpt +++ b/tests/basic/017.phpt @@ -1,10 +1,10 @@ --TEST-- -POST Method test and arrays - 5 +POST Method test and arrays - 5 --POST-- a[]=1&a[a]=1&a[b]=3 --FILE-- <?php -var_dump($_POST['a']); +var_dump($_POST['a']); ?> --EXPECT-- array(3) { diff --git a/tests/basic/018.phpt b/tests/basic/018.phpt index 45996b2fe3..93bca86da1 100644 --- a/tests/basic/018.phpt +++ b/tests/basic/018.phpt @@ -1,11 +1,11 @@ --TEST-- -POST Method test and arrays - 6 +POST Method test and arrays - 6 --POST-- a[][]=1&a[][]=3&b[a][b][c]=1&b[a][b][d]=1 --FILE-- <?php -var_dump($_POST['a']); -var_dump($_POST['b']); +var_dump($_POST['a']); +var_dump($_POST['b']); ?> --EXPECT-- array(2) { diff --git a/tests/basic/019.phpt b/tests/basic/019.phpt index 3bece247a0..0c90c4907a 100644 --- a/tests/basic/019.phpt +++ b/tests/basic/019.phpt @@ -1,10 +1,10 @@ --TEST-- -POST Method test and arrays - 7 +POST Method test and arrays - 7 --POST-- a[]=1&a[]]=3&a[[]=4 --FILE-- <?php -var_dump($_POST['a']); +var_dump($_POST['a']); ?> --EXPECT-- array(3) { diff --git a/tests/basic/020.phpt b/tests/basic/020.phpt index c94a60407b..3a4d7f455b 100644 --- a/tests/basic/020.phpt +++ b/tests/basic/020.phpt @@ -1,10 +1,10 @@ --TEST-- -POST Method test and arrays - 8 +POST Method test and arrays - 8 --POST-- a[a[]]=1&a[b[]]=3 --FILE-- <?php -var_dump($_POST['a']); +var_dump($_POST['a']); ?> --EXPECT-- array(2) { diff --git a/tests/basic/bug45986.phpt b/tests/basic/bug45986.phpt index 33c3f27eac..e63b1b3906 100644 --- a/tests/basic/bug45986.phpt +++ b/tests/basic/bug45986.phpt @@ -3,7 +3,7 @@ Bug #45986 (wrong error message for a non existent file on rename) --CREDITS-- Sebastian Schürmann sebs@php.net -Testfest 2009 Munich +Testfest 2009 Munich --FILE-- <?php rename('foo', 'bar'); diff --git a/tests/basic/bug67198.phpt b/tests/basic/bug67198.phpt index 9e2e224509..4c2322b6de 100644 --- a/tests/basic/bug67198.phpt +++ b/tests/basic/bug67198.phpt @@ -4,7 +4,7 @@ php://input is empty when enable_post_data_reading=Off allow_url_fopen=1 --SKIPIF-- <?php -include __DIR__."/../../sapi/cli/tests/skipif.inc"; +include __DIR__."/../../sapi/cli/tests/skipif.inc"; ?> --FILE-- <?php diff --git a/tests/basic/timeout_variation_0.phpt b/tests/basic/timeout_variation_0.phpt index 4b39ae31dd..adc8e6b7cf 100644 --- a/tests/basic/timeout_variation_0.phpt +++ b/tests/basic/timeout_variation_0.phpt @@ -1,7 +1,7 @@ --TEST-- Timeout within while loop --SKIPIF-- -<?php +<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- @@ -11,7 +11,7 @@ include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc"; set_time_limit($t); -while (1) { +while (1) { busy_wait(1); } diff --git a/tests/basic/timeout_variation_1.phpt b/tests/basic/timeout_variation_1.phpt index 28699dcbc4..51568a7492 100644 --- a/tests/basic/timeout_variation_1.phpt +++ b/tests/basic/timeout_variation_1.phpt @@ -1,7 +1,7 @@ --TEST-- Timeout within function --SKIPIF-- -<?php +<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- @@ -11,8 +11,8 @@ include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc"; set_time_limit($t); -function hello ($t) { - echo "call"; +function hello ($t) { + echo "call"; busy_wait($t*2); } diff --git a/tests/basic/timeout_variation_10.phpt b/tests/basic/timeout_variation_10.phpt index 373be27b3d..030deaf389 100644 --- a/tests/basic/timeout_variation_10.phpt +++ b/tests/basic/timeout_variation_10.phpt @@ -1,7 +1,7 @@ --TEST-- Timeout within shutdown function, variation --SKIPIF-- -<?php +<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- diff --git a/tests/basic/timeout_variation_2.phpt b/tests/basic/timeout_variation_2.phpt index 5a549500cf..24574e9c5f 100644 --- a/tests/basic/timeout_variation_2.phpt +++ b/tests/basic/timeout_variation_2.phpt @@ -1,7 +1,7 @@ --TEST-- Timeout within array_walk --SKIPIF-- -<?php +<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- @@ -12,7 +12,7 @@ include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc"; set_time_limit($t); function cb(&$i, $k, $p) -{ +{ busy_wait(1); } diff --git a/tests/basic/timeout_variation_3.phpt b/tests/basic/timeout_variation_3.phpt index 1dc169c67b..795ad6505d 100644 --- a/tests/basic/timeout_variation_3.phpt +++ b/tests/basic/timeout_variation_3.phpt @@ -1,7 +1,7 @@ --TEST-- Timeout within eval --SKIPIF-- -<?php +<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- @@ -11,8 +11,8 @@ include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc"; set_time_limit($t); -function hello ($t) { - echo "call", PHP_EOL; +function hello ($t) { + echo "call", PHP_EOL; busy_wait($t*2); } diff --git a/tests/basic/timeout_variation_4.phpt b/tests/basic/timeout_variation_4.phpt index 19ebf585a9..7a334fd544 100644 --- a/tests/basic/timeout_variation_4.phpt +++ b/tests/basic/timeout_variation_4.phpt @@ -1,7 +1,7 @@ --TEST-- Timeout within call_user_func --SKIPIF-- -<?php +<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- @@ -11,8 +11,8 @@ include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc"; set_time_limit($t); -function hello ($t) { - echo "call", PHP_EOL; +function hello ($t) { + echo "call", PHP_EOL; busy_wait($t*2); } diff --git a/tests/basic/timeout_variation_5.phpt b/tests/basic/timeout_variation_5.phpt index 1c28c00ac9..c3b71e89ab 100644 --- a/tests/basic/timeout_variation_5.phpt +++ b/tests/basic/timeout_variation_5.phpt @@ -1,7 +1,7 @@ --TEST-- Timeout within function containing exception --SKIPIF-- -<?php +<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- @@ -11,7 +11,7 @@ include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc"; set_time_limit($t); -function f($t) { +function f($t) { echo "call"; busy_wait($t*2); throw new Exception("never reached here"); diff --git a/tests/basic/timeout_variation_6.phpt b/tests/basic/timeout_variation_6.phpt index fb3c3a7aca..c172625f5d 100644 --- a/tests/basic/timeout_variation_6.phpt +++ b/tests/basic/timeout_variation_6.phpt @@ -1,7 +1,7 @@ --TEST-- Timeout within function trowing exception before timeout reached --SKIPIF-- -<?php +<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- @@ -11,7 +11,7 @@ include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc"; set_time_limit($t); -function f($t) { +function f($t) { echo "call"; busy_wait($t-1); throw new Exception("exception before timeout"); diff --git a/tests/basic/timeout_variation_7.phpt b/tests/basic/timeout_variation_7.phpt index e642a33a4e..df8f897550 100644 --- a/tests/basic/timeout_variation_7.phpt +++ b/tests/basic/timeout_variation_7.phpt @@ -1,7 +1,7 @@ --TEST-- Timeout within for loop --SKIPIF-- -<?php +<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- @@ -11,7 +11,7 @@ include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc"; set_time_limit($t); -for ($i = 0; $i < 42; $i++) { +for ($i = 0; $i < 42; $i++) { busy_wait(1); } diff --git a/tests/basic/timeout_variation_8.phpt b/tests/basic/timeout_variation_8.phpt index 15c9777f2c..d0a8861700 100644 --- a/tests/basic/timeout_variation_8.phpt +++ b/tests/basic/timeout_variation_8.phpt @@ -1,7 +1,7 @@ --TEST-- Timeout within foreach loop --SKIPIF-- -<?php +<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- @@ -11,7 +11,7 @@ include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc"; set_time_limit($t); -foreach (range(0, 42) as $i) { +foreach (range(0, 42) as $i) { busy_wait(1); } diff --git a/tests/basic/timeout_variation_9.phpt b/tests/basic/timeout_variation_9.phpt index 133fdf6daa..390d29b0c0 100644 --- a/tests/basic/timeout_variation_9.phpt +++ b/tests/basic/timeout_variation_9.phpt @@ -1,7 +1,7 @@ --TEST-- Timeout within shutdown function --SKIPIF-- -<?php +<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- |