[wp-trac] [WordPress Trac] #39219: Add `assertNotFalse` method to `WP_UnitTestCase`.

WordPress Trac noreply at wordpress.org
Sat Dec 10 04:15:23 UTC 2016


#39219: Add `assertNotFalse` method to `WP_UnitTestCase`.
------------------------------+----------------------------
 Reporter:  peterwilsoncc     |       Owner:  peterwilsoncc
     Type:  enhancement       |      Status:  assigned
 Priority:  normal            |   Milestone:  4.8
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+----------------------------

Comment (by dd32):

 @peterwilsoncc Confirmed that the logic matches what is in PHPUnit:
 https://github.com/sebastianbergmann/phpunit/blob/9758eee6421efd997a42fe850f74292a490e9c70/src/Framework/Assert.php#L1185-L1196
 so this seems fine.

 Is it possible to find the occurrences in the current unit tests where
 this was to be used, but avoided?

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


More information about the wp-trac mailing list