Changeset 36714
- Timestamp:
- 02/25/2016 09:55:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/canonical.php
r35191 r36714 24 24 25 25 /** 26 * @dataProvider data 26 * @dataProvider data_canonical 27 27 */ 28 function test ( $test_url, $expected, $ticket = 0, $expected_doing_it_wrong = array() ) {28 function test_canonical( $test_url, $expected, $ticket = 0, $expected_doing_it_wrong = array() ) { 29 29 30 30 if ( false !== strpos( $test_url, '%d' ) ) { … … 38 38 } 39 39 40 function data () {40 function data_canonical() { 41 41 /* Data format: 42 * [0]: $test_url,42 * [0]: Test URL. 43 43 * [1]: expected results: Any of the following can be used 44 44 * array( 'url': expected redirection location, 'qv': expected query vars to be set via the rewrite AND $_GET ); … … 46 46 * (string) expected redirect location 47 47 * [2]: (optional) The ticket the test refers to, Can be skipped if unknown. 48 * [3]: (optional) Array of class/function names expected to throw `_doing_it_wrong()` notices. 48 49 */ 49 50
Note: See TracChangeset
for help on using the changeset viewer.