Changeset 48939 for trunk/tests/phpunit/tests/includes/helpers.php
- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/includes/helpers.php
r47122 r48939 8 8 * @ticket 30522 9 9 */ 10 function data_assert EqualSets() {10 function data_assertSameSets() { 11 11 return array( 12 12 array( … … 49 49 50 50 /** 51 * @dataProvider data_assert EqualSets51 * @dataProvider data_assertSameSets 52 52 * @ticket 30522 53 53 */ 54 function test_assert EqualSets( $expected, $actual, $exception ) {54 function test_assertSameSets( $expected, $actual, $exception ) { 55 55 if ( $exception ) { 56 56 try { 57 $this->assert EqualSets( $expected, $actual );57 $this->assertSameSets( $expected, $actual ); 58 58 } catch ( PHPUnit_Framework_ExpectationFailedException $ex ) { 59 59 return; … … 62 62 $this->fail(); 63 63 } else { 64 $this->assert EqualSets( $expected, $actual );64 $this->assertSameSets( $expected, $actual ); 65 65 } 66 66 } … … 69 69 * @ticket 30522 70 70 */ 71 function data_assert EqualSetsWithIndex() {71 function data_assertSameSetsWithIndex() { 72 72 return array( 73 73 array( … … 205 205 } 206 206 /** 207 * @dataProvider data_assert EqualSetsWithIndex207 * @dataProvider data_assertSameSetsWithIndex 208 208 * @ticket 30522 209 209 */ 210 function test_assert EqualSetsWithIndex( $expected, $actual, $exception ) {210 function test_assertSameSetsWithIndex( $expected, $actual, $exception ) { 211 211 if ( $exception ) { 212 212 try { 213 $this->assert EqualSetsWithIndex( $expected, $actual );213 $this->assertSameSetsWithIndex( $expected, $actual ); 214 214 } catch ( PHPUnit_Framework_ExpectationFailedException $ex ) { 215 215 return; … … 218 218 $this->fail(); 219 219 } else { 220 $this->assert EqualSetsWithIndex( $expected, $actual );220 $this->assertSameSetsWithIndex( $expected, $actual ); 221 221 } 222 222 } … … 313 313 314 314 // Only check arguments that are explicitly asked for. 315 $this->assert EqualSets( $expected['args'], array_intersect_key( $args, $expected['args'] ) );315 $this->assertSameSets( $expected['args'], array_intersect_key( $args, $expected['args'] ) ); 316 316 } 317 317
Note: See TracChangeset
for help on using the changeset viewer.