[wp-trac] [WordPress Trac] #50482: Uncaught Exception: Serialization of 'Closure' is not allowed when run PHPUnit in plugin development

WordPress Trac noreply at wordpress.org
Tue Aug 18 00:56:01 UTC 2020


#50482: Uncaught Exception: Serialization of 'Closure' is not allowed when run
PHPUnit in plugin development
------------------------------+------------------------------
 Reporter:  yshinoda          |       Owner:  (none)
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  5.5
 Severity:  critical          |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:6 yshinoda]:
 > Would you at least raise the supported version of PHPUnit from 5.* ?
 > https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/#running-
 tests-locally

 As far as I'm aware, PHPUnit 7.x is the latest supported veresion, see
 #43218.

 PHPUnit 8.x support is currently blocked by moving to PHP 7.1 as the
 required version, see #46149 and #51043.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50482#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list