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 @@ -135,6 +135,26 @@ public function testAppendThrowsExceptionForInvalidArgument()
135135 $ coverage ->append (array (), NULL );
136136 }
137137
138+ /**
139+ * @covers PHP_CodeCoverage::setCacheTokens
140+ * @expectedException InvalidArgumentException
141+ */
142+ public function testSetCacheTokensThrowsExceptionForInvalidArgument ()
143+ {
144+ $ coverage = new PHP_CodeCoverage ;
145+ $ coverage ->setCacheTokens (NULL );
146+ }
147+
148+ /**
149+ * @covers PHP_CodeCoverage::setCacheTokens
150+ */
151+ public function testSetCacheTokens ()
152+ {
153+ $ coverage = new PHP_CodeCoverage ;
154+ $ coverage ->setCacheTokens (TRUE );
155+ $ this ->assertAttributeEquals (TRUE , 'cacheTokens ' , $ coverage );
156+ }
157+
138158 /**
139159 * @covers PHP_CodeCoverage::setForceCoversAnnotation
140160 * @expectedException InvalidArgumentException
You can’t perform that action at this time.
0 commit comments