/** * @group ZF-9990 */ public function testFactoryWithCustomLayoutClass() { $this->getMock('Zend\Layout\Layout', null, array(), 'StubLayoutCustom'); $config = array( 'layout' => 'StubLayoutCustom' ); $writer = MailWriter::factory($config); $this->assertInstanceOf('Zend\Log\Writer\Mail', $writer); }