File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,26 @@ public function testSetProcessUncoveredFilesFromWhitelist()
188188 );
189189 }
190190
191+ /**
192+ * @covers PHP_CodeCoverage::setPromoteGlobals
193+ */
194+ public function testSetPromoteGlobals ()
195+ {
196+ $ coverage = new PHP_CodeCoverage ;
197+ $ coverage ->setPromoteGlobals (TRUE );
198+ $ this ->assertAttributeEquals (TRUE , 'promoteGlobals ' , $ coverage );
199+ }
200+
201+ /**
202+ * @covers PHP_CodeCoverage::setPromoteGlobals
203+ * @expectedException InvalidArgumentException
204+ */
205+ public function testSetPromoteGlobalsThrowsExceptionForInvalidArgument ()
206+ {
207+ $ coverage = new PHP_CodeCoverage ;
208+ $ coverage ->setPromoteGlobals (NULL );
209+ }
210+
191211 /**
192212 * @covers PHP_CodeCoverage::clear
193213 */
You can’t perform that action at this time.
0 commit comments