title: How to test a Magento Block
body: <p>I want to test a Magento block function. I don't know, how to call the function outside <code>.phtml</code> files. Does anybody know a function like <code>getModel()</code> for blocks?</p>
  
  <p>I found </p>
  
  <blockquote>
    <p>getBlockSingleton()</p>
  </blockquote>
  
  <p>But, it is deprecated and I can't get it to work.</p>