You appear to be a bot. Output may be restricted
Description
Usage
MockAction::get_call_count( $tag );
Parameters
- $tag
- ( mixed ) optional –
Returns
void
Source
File name: wordpress-develop-tests/phpunit/includes/utils.php
Lines:
1 to 13 of 13
public function get_call_count( $tag = '' ) { if ( $tag ) { $count = 0; foreach ( $this->events as $e ) { if ( $e['action'] === $tag ) { ++$count; } } return $count; } return count( $this->events ); }