diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-03 22:52:20 +0100 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-03 22:52:20 +0100 |
| commit | f8d795820e780a6322e054c26c581570613c14f0 (patch) | |
| tree | 99d3ae01ce564752807341c5743863b4c92513f8 /tests/basic | |
| parent | d2cb200e10ada6fa44c54a29292bb4665728fff0 (diff) | |
| download | php-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz | |
Reindent phpt files
Diffstat (limited to 'tests/basic')
| -rw-r--r-- | tests/basic/011.phpt | 2 | ||||
| -rw-r--r-- | tests/basic/012.phpt | 2 | ||||
| -rw-r--r-- | tests/basic/bug20539.phpt | 8 | ||||
| -rw-r--r-- | tests/basic/bug54514.phpt | 6 | ||||
| -rw-r--r-- | tests/basic/bug71273.phpt | 8 | ||||
| -rw-r--r-- | tests/basic/enable_post_data_reading_05.phpt | 2 | ||||
| -rw-r--r-- | tests/basic/enable_post_data_reading_06.phpt | 2 | ||||
| -rw-r--r-- | tests/basic/rfc1867_empty_upload.phpt | 4 | ||||
| -rw-r--r-- | tests/basic/rfc1867_max_file_size.phpt | 4 | ||||
| -rw-r--r-- | tests/basic/rfc1867_max_file_uploads_empty_files.phpt | 4 | ||||
| -rw-r--r-- | tests/basic/rfc1867_post_max_filesize.phpt | 4 |
11 files changed, 23 insertions, 23 deletions
diff --git a/tests/basic/011.phpt b/tests/basic/011.phpt index b5c769d9bd..03fccaa9b7 100644 --- a/tests/basic/011.phpt +++ b/tests/basic/011.phpt @@ -10,7 +10,7 @@ $argc = $_SERVER['argc']; $argv = $_SERVER['argv']; for ($i=0; $i<$argc; $i++) { - echo "$i: ".$argv[$i]."\n"; + echo "$i: ".$argv[$i]."\n"; } ?> diff --git a/tests/basic/012.phpt b/tests/basic/012.phpt index 50af0b49f6..37e5ecd809 100644 --- a/tests/basic/012.phpt +++ b/tests/basic/012.phpt @@ -11,7 +11,7 @@ $argc = $_SERVER['argc']; $argv = $_SERVER['argv']; for ($i=1; $i<$argc; $i++) { - echo ($i-1).": ".$argv[$i]."\n"; + echo ($i-1).": ".$argv[$i]."\n"; } ?> diff --git a/tests/basic/bug20539.phpt b/tests/basic/bug20539.phpt index 2b84d14189..99a88f66b5 100644 --- a/tests/basic/bug20539.phpt +++ b/tests/basic/bug20539.phpt @@ -9,10 +9,10 @@ session.save_handler=files session.save_path=./tests/basic/ --FILE-- <?php - print "good :)\n"; - $filename = __DIR__ . '/sess_' . session_id(); - var_dump(file_exists($filename)); - @unlink($filename); + print "good :)\n"; + $filename = __DIR__ . '/sess_' . session_id(); + var_dump(file_exists($filename)); + @unlink($filename); ?> --EXPECT-- good :) diff --git a/tests/basic/bug54514.phpt b/tests/basic/bug54514.phpt index 0c5595e3f7..6133ee2caf 100644 --- a/tests/basic/bug54514.phpt +++ b/tests/basic/bug54514.phpt @@ -3,10 +3,10 @@ Req #54514 (Get php binary path during script execution) --FILE-- <?php if(realpath(getenv('TEST_PHP_EXECUTABLE')) === realpath(PHP_BINARY)) { - echo "done"; + echo "done"; } else { - var_dump(getenv('TEST_PHP_EXECUTABLE')); - var_dump(PHP_BINARY); + var_dump(getenv('TEST_PHP_EXECUTABLE')); + var_dump(PHP_BINARY); } --EXPECT-- done diff --git a/tests/basic/bug71273.phpt b/tests/basic/bug71273.phpt index 3a2ff244f4..7634d432d0 100644 --- a/tests/basic/bug71273.phpt +++ b/tests/basic/bug71273.phpt @@ -2,12 +2,12 @@ Bug #71273 A wrong ext directory setup in php.ini leads to crash --FILE-- <?php - /* NOTE this file is required to be encoded in iso-8859-1 */ + /* NOTE this file is required to be encoded in iso-8859-1 */ - $cmd = getenv('TEST_PHP_EXECUTABLE') . " -n -d html_errors=on -d extension_dir=a/é/w -d extension=php_kartoffelbrei.dll -v 2>&1"; - $out = shell_exec($cmd); + $cmd = getenv('TEST_PHP_EXECUTABLE') . " -n -d html_errors=on -d extension_dir=a/é/w -d extension=php_kartoffelbrei.dll -v 2>&1"; + $out = shell_exec($cmd); - var_dump(preg_match(",.+a[\\/].+[\\/]w.php_kartoffelbrei.dll.+,s", $out)); + var_dump(preg_match(",.+a[\\/].+[\\/]w.php_kartoffelbrei.dll.+,s", $out)); ?> --EXPECT-- int(1) diff --git a/tests/basic/enable_post_data_reading_05.phpt b/tests/basic/enable_post_data_reading_05.phpt index d8efa0129e..f6695f84c4 100644 --- a/tests/basic/enable_post_data_reading_05.phpt +++ b/tests/basic/enable_post_data_reading_05.phpt @@ -14,7 +14,7 @@ $f1 = fopen("php://input", "r"); $f2 = fopen("php://input", "r"); while (!feof($f1) && !feof($f2)) { - echo fgetc($f1), fgetc($f2); + echo fgetc($f1), fgetc($f2); } ?> diff --git a/tests/basic/enable_post_data_reading_06.phpt b/tests/basic/enable_post_data_reading_06.phpt index fbed195c03..8e9db3a1d8 100644 --- a/tests/basic/enable_post_data_reading_06.phpt +++ b/tests/basic/enable_post_data_reading_06.phpt @@ -95,7 +95,7 @@ $f1 = fopen("php://input", "r"); $f2 = fopen("php://input", "r"); while (!feof($f1) && !feof($f2)) { - echo fgets($f1), fgets($f2); + echo fgets($f1), fgets($f2); } ?> diff --git a/tests/basic/rfc1867_empty_upload.phpt b/tests/basic/rfc1867_empty_upload.phpt index 77fe53ea58..2b89ca8888 100644 --- a/tests/basic/rfc1867_empty_upload.phpt +++ b/tests/basic/rfc1867_empty_upload.phpt @@ -31,10 +31,10 @@ Content-Type: text/plain-file3 var_dump($_FILES); var_dump($_POST); if (is_uploaded_file($_FILES["file1"]["tmp_name"])) { - var_dump(file_get_contents($_FILES["file1"]["tmp_name"])); + var_dump(file_get_contents($_FILES["file1"]["tmp_name"])); } if (is_uploaded_file($_FILES["file3"]["tmp_name"])) { - var_dump(file_get_contents($_FILES["file3"]["tmp_name"])); + var_dump(file_get_contents($_FILES["file3"]["tmp_name"])); } ?> --EXPECTF-- diff --git a/tests/basic/rfc1867_max_file_size.phpt b/tests/basic/rfc1867_max_file_size.phpt index 89406a407f..8d585f7503 100644 --- a/tests/basic/rfc1867_max_file_size.phpt +++ b/tests/basic/rfc1867_max_file_size.phpt @@ -31,10 +31,10 @@ Content-Type: text/plain-file3; var_dump($_FILES); var_dump($_POST); if (is_uploaded_file($_FILES["file1"]["tmp_name"])) { - var_dump(file_get_contents($_FILES["file1"]["tmp_name"])); + var_dump(file_get_contents($_FILES["file1"]["tmp_name"])); } if (is_uploaded_file($_FILES["file3"]["tmp_name"])) { - var_dump(file_get_contents($_FILES["file3"]["tmp_name"])); + var_dump(file_get_contents($_FILES["file3"]["tmp_name"])); } ?> --EXPECTF-- diff --git a/tests/basic/rfc1867_max_file_uploads_empty_files.phpt b/tests/basic/rfc1867_max_file_uploads_empty_files.phpt index 6ea7915c25..b85ed20971 100644 --- a/tests/basic/rfc1867_max_file_uploads_empty_files.phpt +++ b/tests/basic/rfc1867_max_file_uploads_empty_files.phpt @@ -31,10 +31,10 @@ Content-Type: text/plain-file var_dump($_FILES); var_dump($_POST); if (is_uploaded_file($_FILES["file1"]["tmp_name"])) { - var_dump(file_get_contents($_FILES["file1"]["tmp_name"])); + var_dump(file_get_contents($_FILES["file1"]["tmp_name"])); } if (is_uploaded_file($_FILES["file4"]["tmp_name"])) { - var_dump(file_get_contents($_FILES["file4"]["tmp_name"])); + var_dump(file_get_contents($_FILES["file4"]["tmp_name"])); } ?> --EXPECTF-- diff --git a/tests/basic/rfc1867_post_max_filesize.phpt b/tests/basic/rfc1867_post_max_filesize.phpt index 58e05319a1..b03220e915 100644 --- a/tests/basic/rfc1867_post_max_filesize.phpt +++ b/tests/basic/rfc1867_post_max_filesize.phpt @@ -27,10 +27,10 @@ Content-Type: text/plain-file3 var_dump($_FILES); var_dump($_POST); if (is_uploaded_file($_FILES["file1"]["tmp_name"])) { - var_dump(file_get_contents($_FILES["file1"]["tmp_name"])); + var_dump(file_get_contents($_FILES["file1"]["tmp_name"])); } if (is_uploaded_file($_FILES["file3"]["tmp_name"])) { - var_dump(file_get_contents($_FILES["file3"]["tmp_name"])); + var_dump(file_get_contents($_FILES["file3"]["tmp_name"])); } ?> --EXPECTF-- |
