[buddypress-trac] [BuddyPress Trac] #7204: Unit tests failing on PHP 7.0.9

buddypress-trac noreply at wordpress.org
Thu Jul 28 09:24:35 UTC 2016


#7204: Unit tests failing on PHP 7.0.9
------------------------------+-------------------
 Reporter:  DJPaul            |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  2.6.2
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
------------------------------+-------------------
 From Travis-CI. Suspected cause is a change in their environment which
 they moved from PHP 7.0.8 to 7.0.9. I don't know if this only affects the
 test or actually some feature in BuddyPress. Move the milestone
 appropriately.

 {{{
 There were 6 errors:
 1) BP_Tests_BP_Attachment_TestCases::test_bp_attachment_upload
 Parameter 1 to BP_Tests_BP_Attachment_TestCases::upload_error_handler()
 expected to be a reference, value given
 /tmp/wordpress/src/wp-admin/includes/file.php:319
 /tmp/wordpress/src/wp-admin/includes/file.php:449
 /tmp/wordpress/src/wp-content/plugins/BuddyPress/src/bp-core/classes
 /class-bp-attachment.php:272
 /tmp/wordpress/src/wp-
 content/plugins/BuddyPress/tests/phpunit/testcases/core/class-bp-
 attachment.php:160
 2)
 BP_Tests_BP_Attachment_TestCases::test_bp_attachment_upload_no_base_dir_specific_time
 Parameter 1 to BP_Tests_BP_Attachment_TestCases::upload_error_handler()
 expected to be a reference, value given
 /tmp/wordpress/src/wp-admin/includes/file.php:365
 /tmp/wordpress/src/wp-admin/includes/file.php:449
 /tmp/wordpress/src/wp-content/plugins/BuddyPress/src/bp-core/classes
 /class-bp-attachment.php:272
 /tmp/wordpress/src/wp-
 content/plugins/BuddyPress/tests/phpunit/testcases/core/class-bp-
 attachment.php:205
 3) BP_Tests_BP_Attachment_TestCases::test_bp_attachment_avatar_user_upload
 Parameter 1 to BP_Tests_BP_Attachment_TestCases::upload_error_handler()
 expected to be a reference, value given
 /tmp/wordpress/src/wp-admin/includes/file.php:365
 /tmp/wordpress/src/wp-admin/includes/file.php:449
 /tmp/wordpress/src/wp-content/plugins/BuddyPress/src/bp-core/classes
 /class-bp-attachment.php:272
 /tmp/wordpress/src/wp-
 content/plugins/BuddyPress/tests/phpunit/testcases/core/class-bp-
 attachment.php:241
 4)
 BP_Tests_BP_Attachment_TestCases::test_bp_attachment_avatar_group_upload
 Parameter 1 to BP_Tests_BP_Attachment_TestCases::upload_error_handler()
 expected to be a reference, value given
 /tmp/wordpress/src/wp-admin/includes/file.php:365
 /tmp/wordpress/src/wp-admin/includes/file.php:449
 /tmp/wordpress/src/wp-content/plugins/BuddyPress/src/bp-core/classes
 /class-bp-attachment.php:272
 /tmp/wordpress/src/wp-
 content/plugins/BuddyPress/tests/phpunit/testcases/core/class-bp-
 attachment.php:294
 5)
 BP_Tests_BP_Attachment_TestCases::test_bp_attachment_cover_image_user_upload
 Parameter 1 to BP_Tests_BP_Attachment_TestCases::upload_error_handler()
 expected to be a reference, value given
 /tmp/wordpress/src/wp-admin/includes/file.php:365
 /tmp/wordpress/src/wp-admin/includes/file.php:449
 /tmp/wordpress/src/wp-content/plugins/BuddyPress/src/bp-core/classes
 /class-bp-attachment.php:272
 /tmp/wordpress/src/wp-
 content/plugins/BuddyPress/tests/phpunit/testcases/core/class-bp-
 attachment.php:368
 6)
 BP_Tests_BP_Attachment_TestCases::test_bp_attachment_upload_dir_filter_arg
 Parameter 1 to BP_Tests_BP_Attachment_TestCases::upload_error_handler()
 expected to be a reference, value given
 /tmp/wordpress/src/wp-admin/includes/file.php:365
 /tmp/wordpress/src/wp-admin/includes/file.php:449
 /tmp/wordpress/src/wp-content/plugins/BuddyPress/src/bp-core/classes
 /class-bp-attachment.php:272
 /tmp/wordpress/src/wp-
 content/plugins/BuddyPress/tests/phpunit/testcases/core/class-bp-
 attachment.php:492
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7204>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list