|
|
@@ -190,11 +190,36 @@ class Zend_Application_Resource_MailTest extends PHPUnit_Framework_TestCase
|
|
|
$resource->setOptions($options);
|
|
|
|
|
|
$resource->init();
|
|
|
- $this->assertTrue(Zend_Mail::getDefaultTransport() instanceof Zend_Mail_Transport_Sendmail);
|
|
|
+ $this->assertTrue(Zend_Mail::getDefaultTransport() instanceof Zend_Mail_Transport_Sendmail);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @group ZF-9136
|
|
|
+ */
|
|
|
+ public function testCustomMailTransportWithFQName() {
|
|
|
+ $options = array('transport' => array('type' => 'Zend_Mail_Transport_Sendmail'));
|
|
|
+ $resource = new Zend_Application_Resource_Mail(array());
|
|
|
+ $resource->setBootstrap($this->bootstrap);
|
|
|
+ $resource->setOptions($options);
|
|
|
+
|
|
|
+ $this->assertTrue($resource->init() instanceof Zend_Mail_Transport_Sendmail);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @group ZF-9136
|
|
|
+ */
|
|
|
+ public function testCustomMailTransportWithWrontCasesAsShouldBe() {
|
|
|
+ $options = array('transport' => array('type' => 'Zend_Application_Resource_mailTestCAsE'));
|
|
|
+ $resource = new Zend_Application_Resource_Mail(array());
|
|
|
+ $resource->setBootstrap($this->bootstrap);
|
|
|
+ $resource->setOptions($options);
|
|
|
+
|
|
|
+ $this->assertTrue($resource->init() instanceof Zend_Application_Resource_mailTestCAsE);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
-if (PHPUnit_MAIN_METHOD == 'Zend_Application_Resource_MainTest::main') {
|
|
|
- Zend_Application_Resource_MainTest::main();
|
|
|
+if (PHPUnit_MAIN_METHOD == 'Zend_Application_Resource_MailTest::main') {
|
|
|
+ Zend_Application_Resource_MailTest::main();
|
|
|
}
|
|
|
+
|