public function testDestructor() { $this->_layout->addBlock('Mage_Core_Block_Text', 'test'); $this->assertNotEmpty($this->_layout->getAllBlocks()); $this->_layout->__destruct(); $this->assertEmpty($this->_layout->getAllBlocks()); }