/** * @param string $blockType * @param string $expectedClassName * @dataProvider getBlockSingletonDataProvider */ public function testGetBlockSingleton($blockType, $expectedClassName) { $block = $this->_layout->getBlockSingleton($blockType); $this->assertInstanceOf($expectedClassName, $block); $this->assertSame($block, $this->_layout->getBlockSingleton($blockType)); }