You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by rs...@apache.org on 2021/03/18 17:25:15 UTC
[avro] branch master updated: AVRO-3085: Fix PHP interop test on CI
to suppress unnecessary warnings (#1144)
This is an automated email from the ASF dual-hosted git repository.
rskraba pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/master by this push:
new 5be7d16 AVRO-3085: Fix PHP interop test on CI to suppress unnecessary warnings (#1144)
5be7d16 is described below
commit 5be7d16312fb3a0e1ea18c60a04ba0c1e92e1fc0
Author: Kengo Seki <se...@apache.org>
AuthorDate: Fri Mar 19 02:25:03 2021 +0900
AVRO-3085: Fix PHP interop test on CI to suppress unnecessary warnings (#1144)
---
lang/php/test/InterOpTest.php | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lang/php/test/InterOpTest.php b/lang/php/test/InterOpTest.php
index 309ed18..db73b08 100644
--- a/lang/php/test/InterOpTest.php
+++ b/lang/php/test/InterOpTest.php
@@ -45,20 +45,24 @@ class InterOpTest extends TestCase
}
while ($file = readdir($dh)) {
- if (0 < preg_match('/^[a-z]+(_deflate|_snappy|_zstandard|_bzip2)?\.avro$/', $file)) {
+ if (preg_match('/^[a-z]+(_deflate|_snappy|_zstandard|_bzip2)?\.avro$/', $file)) {
$data_files [] = implode(DIRECTORY_SEPARATOR, array($data_dir, $file));
+ } else if (preg_match('/[^.]/', $file)) {
+ echo "Skipped: $data_dir/$file", PHP_EOL;
}
}
closedir($dh);
$ary = array();
foreach ($data_files as $df) {
+ echo "Reading: $df", PHP_EOL;
$ary [] = array($df);
}
return $ary;
}
/**
+ * @coversNothing
* @dataProvider file_name_provider
*/
public function test_read($file_name)