Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Avro, mail # dev - PHP test suite failing


Copy link to this message
-
PHP test suite failing
Martin Kleppmann 2013-04-10, 06:18
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.
+
Doug Cutting 2013-04-10, 18:44
+
Martin Kleppmann 2013-04-11, 20:47