public function testObserverDoesntCallCacheObserverMethodWhenBlockDoesntMatch()
{
/** @var Mage_Core_Block_Abstract $testBlock */
$testBlock = $this->getBlockMock('core/abstract', array(), true, array(), 'cacheobserver_test/baz');
$testObserver = $this->getMock('StdClass', array('testFoo'), array(), 'Aligent_CacheObserver_Test_Model_Observer_Foo');
$testObserver->expects($this->never())->method('testFoo');
$this->replaceByMock('model', 'cacheobserver_test/observer_foo', $testObserver);
$testBlock->toHtml();
}