/** * @group ZF-9136 */ public function testCustomMailTransportWithWrontCasesAsShouldBe() { // Have to add an autoloader for ZendTest so that loadClass() can find it. $this->autoloader->unshiftAutoloader('ZendTest_Autoloader', 'ZendTest'); $options = array('transport' => array('type' => 'ZendTest\\Application\\Resource\\mailTestCAsE')); $resource = new MailResource(array()); $resource->setBootstrap($this->bootstrap); $resource->setOptions($options); $this->assertTrue($resource->init() instanceof mailTestCAsE); }
/** * @group ZF-9136 */ public function testCustomMailTransportWithWrongCasesAsShouldBe() { $options = array('transport' => array('type' => 'ZendTest\\Application\\Resource\\TestAsset\\CustomMailTranSPorT')); $resource = new MailResource(array()); $resource->setBootstrap($this->bootstrap); $resource->setOptions($options); $this->assertTrue($resource->init() instanceof CustomMailTranSPorT); }