Opened 7 years ago
Closed 7 years ago
#46043 closed enhancement (fixed)
Unit Tests for the __return functions in functions.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.1 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Build/Test Tools | Keywords: | has-patch has-unit-tests |
| Focuses: | Cc: |
Description
Just a unit test for some functions in the functions.php part of my ongoing effort to add missing tests
Attachments (3)
Change History (7)
#1
@
7 years ago
- Summary changed from Units for the __return function in functions.php to Unit Tests for the __return functions in functions.php
#2
@
7 years ago
- Keywords dev-feedback removed
- Version trunk deleted
test__return_zero() and test__return_empty_string() need to use assertSame() instead of assertEquals() otherwise they use loose type comparison, which makes the tests unreliable.
test__return_true() and test__return_false() shouldn't cast to boolean otherwise they too are unreliable.
Note: See
TracTickets for help on using
tickets.
Unittest