This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,33 @@ public function testConstructorShouldSetOptionsWhenProvided()
108
108
$ this ->assertEquals ($ options , $ application ->getOptions ());
109
109
}
110
110
111
+ /**
112
+ * @group GH-564
113
+ * @depends testConstructorInstantiatesAutoloader
114
+ */
115
+ public function testConstructorRespectsSuppressFileNotFoundWarningFlag ()
116
+ {
117
+ $ application = new Zend_Application ('testing ' );
118
+ $ this ->assertFalse ($ application ->getAutoloader ()->suppressNotFoundWarnings ()); //Default value
119
+
120
+ $ application = new Zend_Application ('testing ' , null , $ suppressNotFoundWarnings = true );
121
+ $ this ->assertTrue ($ application ->getAutoloader ()->suppressNotFoundWarnings ());
122
+
123
+ $ application = new Zend_Application ('testing ' , null , $ suppressNotFoundWarnings = false );
124
+ $ this ->assertFalse ($ application ->getAutoloader ()->suppressNotFoundWarnings ());
125
+
126
+ $ options = array (
127
+ 'foo ' => 'bar ' ,
128
+ 'bar ' => 'baz ' ,
129
+ );
130
+
131
+ $ application = new Zend_Application ('testing ' , $ options , $ suppressNotFoundWarnings = true );
132
+ $ this ->assertTrue ($ application ->getAutoloader ()->suppressNotFoundWarnings ());
133
+
134
+ $ application = new Zend_Application ('testing ' , $ options , $ suppressNotFoundWarnings = false );
135
+ $ this ->assertFalse ($ application ->getAutoloader ()->suppressNotFoundWarnings ());
136
+ }
137
+
111
138
public function testHasOptionShouldReturnFalseWhenOptionNotPresent ()
112
139
{
113
140
$ this ->assertFalse ($ this ->application ->hasOption ('foo ' ));
You can’t perform that action at this time.
0 commit comments