Wordpress/tests/phpunit/includes/phpunit7/MockObject/Generator/mocked_static_method.tpl.dist

6 lines
245 B
Plaintext

{modifier} function {reference}{method_name}({arguments_decl}){return_delim}{return_type}
{
throw new \PHPUnit\Framework\MockObject\BadMethodCallException('Static method "{method_name}" cannot be invoked on mock object');
}