com php-src: Use *.data for tests data files: ext/iconv/tests/Quotes.UTF-8 ext/iconv/tests/Quotes.UTF-8.data ext/iconv/tests/translit-utf8.phpt
ext/recode/tests/002.phpt ext/recode/tests/html.data ext/recode/tests/html.raw
| From: | Peter Kokot | Date: | Fri, 17 May 2019 17:04:43 +0000 |
| Subject: | com php-src: Use *.data for tests data files: ext/iconv/tests/Quotes.UTF-8 ext/iconv/tests/Quotes.UTF-8.data ext/iconv/tests/translit-utf8.phpt ext/recode/tests/002.phpt ext/recode/tests/html.data ext/recode/tests/html.raw |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106225@lists.php.net to get a copy of this message | ||
Commit: 83bfbc290376da07a4aa51595b9eaad7e608f0f6
Author: Peter Kokot <peterkokot@gmail.com> Fri, 17 May 2019 19:04:43 +0200
Parents: d3c95db18c5aac75e5ee1ed57942cb6d6b6d8dde
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=83bfbc290376da07a4aa51595b9eaad7e608f0f6
Log:
Use *.data for tests data files
Changed paths:
D ext/iconv/tests/Quotes.UTF-8
A ext/iconv/tests/Quotes.UTF-8.data
M ext/iconv/tests/translit-utf8.phpt
M ext/recode/tests/002.phpt
A ext/recode/tests/html.data
D ext/recode/tests/html.raw
Diff:
diff --git a/ext/iconv/tests/Quotes.UTF-8 b/ext/iconv/tests/Quotes.UTF-8
deleted file mode 100644
index 3d48ee9...0000000
--- a/ext/iconv/tests/Quotes.UTF-8
+++ /dev/null
@@ -1,4 +0,0 @@
-“Hello”
-‘Hello’
-„Hello”
-‚Hello’
diff --git a/ext/iconv/tests/Quotes.UTF-8.data b/ext/iconv/tests/Quotes.UTF-8.data
new file mode 100644
index 0000000..3d48ee9
--- /dev/null
+++ b/ext/iconv/tests/Quotes.UTF-8.data
@@ -0,0 +1,4 @@
+“Hello”
+‘Hello’
+„Hello”
+‚Hello’
diff --git a/ext/iconv/tests/translit-utf8.phpt b/ext/iconv/tests/translit-utf8.phpt
index e892434..d25cd76 100644
--- a/ext/iconv/tests/translit-utf8.phpt
+++ b/ext/iconv/tests/translit-utf8.phpt
@@ -10,7 +10,7 @@ error_reporting=2047
--FILE--
<?php
//error_reporting(E_ALL);
-$utf = implode('', file(__DIR__.'/Quotes.UTF-8'));
+$utf = implode('', file(__DIR__.'/Quotes.UTF-8.data'));
print(iconv("UTF-8", "ISO-8859-1//TRANSLIT", $utf));
print(iconv("UTF-8", "ASCII//TRANSLIT", $utf));
diff --git a/ext/recode/tests/002.phpt b/ext/recode/tests/002.phpt
index 17fef3f...8f29025 100644
--- a/ext/recode/tests/002.phpt
+++ b/ext/recode/tests/002.phpt
@@ -14,8 +14,8 @@ function ascii2hex($ascii) {
return $hex;
}
-$html_file = fopen(realpath(__DIR__) . '/html.raw', 'r');
-$utf_8_filepath = realpath(__DIR__) . '/utf8.raw';
+$html_file = fopen(realpath(__DIR__) . '/html.data', 'r');
+$utf_8_filepath = realpath(__DIR__) . '/utf8.tmp';
$utf_8_file = fopen($utf_8_filepath, 'w+');
recode_file('html..utf8', $html_file, $utf_8_file);
diff --git a/ext/recode/tests/html.data b/ext/recode/tests/html.data
new file mode 100644
index 0000000..64ecf13
--- /dev/null
+++ b/ext/recode/tests/html.data
@@ -0,0 +1 @@
+123åäöabc
\ No newline at end of file
diff --git a/ext/recode/tests/html.raw b/ext/recode/tests/html.raw
deleted file mode 100644
index 64ecf13..0000000
--- a/ext/recode/tests/html.raw
+++ /dev/null
@@ -1 +0,0 @@
-123åäöabc
\ No newline at end of file