arguments ) { throw new \PHPUnit\Framework\Exception( 'Method call must have an argument' ); } return call_user_func( reset( $invocation->arguments ) ); } public function toString(): string { return 'return result of call_user_func on first invocation argument'; } }