Hmm. I downgraded to PHP 5.3.23, but still get the same test failures. Does anyone know their way around the PHP test suite?
Doug, would you mind applying the patch from https://issues.apache.org/jira/browse/AVRO-1287 and running the interop tests, to see if the PHP tests still pass? (The patch extends the Java implementation to generate a deflate-compressed data file as well as the existing null-codec file, but I don't know if the PHP implementation can read deflated data files.) Thanks! Martin On 10 April 2013 11:44, Doug Cutting <[email protected]> wrote: > PHP tests pass for me, but I'm using a slightly older version of PHP. > > % php --version > PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli) (built: Mar 11 2013 > 14:31:48) > Copyright (c) 1997-2012 The PHP Group > Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies > > % ./build.sh test > PHPUnit 3.6.12 by Sebastian Bergmann. > > ............................................................... 63 / 404 ( > 15%) > .......................................III..................... 126 / 404 ( > 31%) > ............................................................... 189 / 404 ( > 46%) > ............................................................... 252 / 404 ( > 62%) > ............................................................... 315 / 404 ( > 77%) > ............................................................... 378 / 404 ( > 93%) > .......................... > > Time: 1 second, Memory: 11.50Mb > > OK, but incomplete or skipped tests! > Tests: 404, Assertions: 764, Incomplete: 3. > > Doug > > > On Tue, Apr 9, 2013 at 11:18 PM, Martin Kleppmann <[email protected] > >wrote: > > > Hello, > > > > I'm trying to get the tests in all languages working on my machine, > before > > making changes to the interop tests ( > > https://issues.apache.org/jira/browse/AVRO-1287). All tests referenced > > from > > `./build.sh test` (in the repository root) pass for me, except for the > PHP > > tests, which fail — see below. > > > > They look like genuine test failures, but it's possible that there's > > something wrong with my setup (though I've not used PHP in many years, > so I > > wouldn't know). Are the PHP tests expected to be passing at the moment? > > > > Thanks, > > Martin > > > > > > $ php --version > > PHP 5.4.13 (cli) (built: Apr 6 2013 19:26:53) > > Copyright (c) 1997-2013 The PHP Group > > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies > > > > $ ./build.sh test > > PHPUnit 3.7.19 by Sebastian Bergmann. > > > > EEEEEEEEE...................................................... 63 / > 404 ( > > 15%) > > .......................................III..................... 126 / > 404 ( > > 31%) > > .................................SSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 189 / > 404 ( > > 46%) > > SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 252 / > 404 ( > > 62%) > > SSSSSSSSSSS...........SSSSSSSSSSS...........SSSSSSSSSSS.F..F... 315 / > 404 ( > > 77%) > > ............................................................... 378 / > 404 ( > > 93%) > > .......................... > > > > Time: 0 seconds, Memory: 9.00Mb > > > > There were 9 errors: > > > > 1) DataFileTest::test_write_read_nothing_round_trip > > Non-static method AvroDataIO::open_writer() should not be called > statically > > > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/test/DataFileTest.php:68 > > > > 2) DataFileTest::test_write_read_null_round_trip > > Non-static method AvroDataIO::open_writer() should not be called > statically > > > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/test/DataFileTest.php:82 > > > > 3) DataFileTest::test_write_read_string_round_trip > > Non-static method AvroDataIO::open_writer() should not be called > statically > > > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/test/DataFileTest.php:97 > > > > 4) DataFileTest::test_write_read_round_trip > > Non-static method AvroDataIO::open_writer() should not be called > statically > > > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/test/DataFileTest.php:115 > > > > 5) DataFileTest::test_write_read_true_round_trip > > Non-static method AvroDataIO::open_writer() should not be called > statically > > > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/test/DataFileTest.php:131 > > > > 6) DataFileTest::test_write_read_false_round_trip > > Non-static method AvroDataIO::open_writer() should not be called > statically > > > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/test/DataFileTest.php:146 > > > > 7) DataFileTest::test_write_read_int_array_round_trip > > Non-static method AvroDataIO::open_writer() should not be called > statically > > > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/test/DataFileTest.php:160 > > > > 8) DataFileTest::test_differing_schemas_with_primitives > > Non-static method AvroDataIO::open_writer() should not be called > statically > > > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/test/DataFileTest.php:188 > > > > 9) DataFileTest::test_differing_schemas_with_complex_objects > > Non-static method AvroDataIO::open_writer() should not be called > statically > > > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/lib/avro/data_file.php:132 > > /Users/mkleppma/Applications/avro/lang/php/test/DataFileTest.php:246 > > > > -- > > > > > > There were 2 failures: > > > > 1) FloatIntEncodingTest::test_encoding_special_values with data set #0 > > ('double', NAN, '' . "\0" . '' . "\0" . '' . "\0" . '' . "\0" . '' . > "\0" . > > '' . "\0" . '� ') > > DECODED BITS > > expected: 'NaN' > > given: 'NaN' > > Failed asserting that NAN matches expected NAN. > > > > > > > /Users/mkleppma/Applications/avro/lang/php/test/FloatIntEncodingTest.php:230 > > > > > /Users/mkleppma/Applications/avro/lang/php/test/FloatIntEncodingTest.php:110 > > > > 2) FloatIntEncodingTest::test_encoding_special_values with data set #3 > > ('float', NAN, '' . "\0" . '' . "\0" . '� ') > > DECODED BITS > > expected: 'NaN' > > given: 'NaN' > > Failed asserting that NAN matches expected NAN. > > > > > > > /Users/mkleppma/Applications/avro/lang/php/test/FloatIntEncodingTest.php:230 > > > > > /Users/mkleppma/Applications/avro/lang/php/test/FloatIntEncodingTest.php:110 > > > > FAILURES! > > Tests: 404, Assertions: 541, Failures: 2, Errors: 9, Incomplete: 3, > > Skipped: 126. > > >
