How to Mock a name attribute?

Fatal error: Uncaught Error: Call to a member function id() on array in /usr/home/tunarob/domains/blog.tunarob.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /usr/home/tunarob/domains/blog.tunarob.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /usr/home/tunarob/domains/blog.tunarob.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', '.name') #3 /usr/home/tunarob/domains/blog.tunarob.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('.name', Object(CrayonLang), Object(CrayonHighlighter)) #4 /usr/home/tunarob/domains/blog.tunarob.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.cl in /usr/home/tunarob/domains/blog.tunarob.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36