[wp-trac] [WordPress Trac] #41562: PHP 7.2: create_function deprecation in \Gettext_Translations class

WordPress Trac noreply at wordpress.org
Wed Oct 4 04:10:49 UTC 2017


#41562: PHP 7.2: create_function deprecation in \Gettext_Translations class
----------------------------+---------------------
 Reporter:  ayeshrajans     |       Owner:  pento
     Type:  task (blessed)  |      Status:  closed
 Priority:  normal          |   Milestone:  4.9
Component:  I18N            |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  needs-patch     |     Focuses:
----------------------------+---------------------

Comment (by pento):

 In [changeset:"41725"]:
 {{{
 #!CommitTicketReference repository="" revision="41725"
 Tests: Some tests in [41722] were using newer PHPUnit features.

 `test_cache` used PHPUnit's object mocking to test some internal behaviour
 in `Plural_Forms`, but made use of the `willReturn()` method, which was
 introduced in PHPUnit 4.0 as shorthand for `will($this->returnValue())`.
 Fixed by switching to the longer form.

 Several tests used the `@expectedException` directive to catch generic
 `Exception` exceptions, which was added in PHPUnit 3.7. Fixed by changing
 to an explicit `try` / `catch` test.

 See #41562.
 }}}

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


More information about the wp-trac mailing list