|
|
@@ -729,7 +729,7 @@ class Zend_Application_Bootstrap_BootstrapAbstractTest extends PHPUnit_Framework
|
|
|
$bootstrap = new Zend_Application_Bootstrap_Bootstrap($this->application);
|
|
|
$bootstrap->setApplication($bootstrap);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* @group ZF-7696
|
|
|
*/
|
|
|
@@ -746,6 +746,30 @@ class Zend_Application_Bootstrap_BootstrapAbstractTest extends PHPUnit_Framework
|
|
|
$bootstrap = new Zf7696Bootstrap($this->application);
|
|
|
$bootstrap->bootstrap(array('modules'));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @group ZF-10199
|
|
|
+ */
|
|
|
+ public function testHasOptionShouldTreatOptionKeysAsCaseInsensitive()
|
|
|
+ {
|
|
|
+ $application = $this->application;
|
|
|
+ $application->setOptions(array(
|
|
|
+ 'fooBar' => 'baz',
|
|
|
+ ));
|
|
|
+ $this->assertTrue($application->getBootstrap()->hasOption('FooBar'));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @group ZF-10199
|
|
|
+ */
|
|
|
+ public function testGetOptionShouldTreatOptionKeysAsCaseInsensitive()
|
|
|
+ {
|
|
|
+ $application = $this->application;
|
|
|
+ $application->setOptions(array(
|
|
|
+ 'fooBar' => 'baz',
|
|
|
+ ));
|
|
|
+ $this->assertEquals('baz', $application->getBootstrap()->getOption('FooBar'));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
class Zend_Application_Bootstrap_BootstrapAbstractTest_View
|