Changeset 55112
- Timestamp:
- 01/22/2023 12:15:14 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pluggable/signatures.php
r54952 r55112 16 16 * @dataProvider get_defined_pluggable_functions 17 17 */ 18 public function test_pluggable_function_signatures_match( $function ) {18 public function test_pluggable_function_signatures_match( $function_name ) { 19 19 20 20 $signatures = $this->get_pluggable_function_signatures(); 21 21 22 $this->assertTrue( function_exists( $function ) );23 $this->assertArrayHasKey( $function , $signatures );24 25 $function_ref = new ReflectionFunction( $function );22 $this->assertTrue( function_exists( $function_name ) ); 23 $this->assertArrayHasKey( $function_name, $signatures ); 24 25 $function_ref = new ReflectionFunction( $function_name ); 26 26 $param_refs = $function_ref->getParameters(); 27 27 28 $this->assertSame( count( $signatures[ $function ] ), count( $param_refs ) );28 $this->assertSame( count( $signatures[ $function_name ] ), count( $param_refs ) ); 29 29 30 30 $i = 0; 31 31 32 foreach ( $signatures[ $function ] as $name => $value ) {32 foreach ( $signatures[ $function_name ] as $name => $value ) { 33 33 34 34 $param_ref = $param_refs[ $i ];
Note: See TracChangeset
for help on using the changeset viewer.