File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -253,17 +253,11 @@ public function isFile($filename)
253253 * @return boolean
254254 * @throws PHP_CodeCoverage_Exception
255255 */
256- public function isFiltered ($ filename, $ ignoreWhitelist = FALSE )
256+ public function isFiltered ($ filename )
257257 {
258- if (!is_bool ($ ignoreWhitelist )) {
259- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory (
260- 1 , 'boolean '
261- );
262- }
263-
264258 $ filename = realpath ($ filename );
265259
266- if (!$ ignoreWhitelist && ! empty ($ this ->whitelistedFiles )) {
260+ if (!empty ($ this ->whitelistedFiles )) {
267261 return !isset ($ this ->whitelistedFiles [$ filename ]);
268262 }
269263
Original file line number Diff line number Diff line change @@ -294,13 +294,4 @@ public function testNotWhitelistedFileIsFiltered()
294294 $ this ->filter ->addFileToWhitelist ($ this ->files [0 ]);
295295 $ this ->assertTrue ($ this ->filter ->isFiltered ($ this ->files [1 ]));
296296 }
297-
298- /**
299- * @covers PHP_CodeCoverage_Filter::isFiltered
300- * @expectedException PHP_CodeCoverage_Exception
301- */
302- public function testIsFilteredThrowsExceptionForInvalidArgument ()
303- {
304- $ this ->filter ->isFiltered ('foo ' , array (), NULL );
305- }
306297}
You can’t perform that action at this time.
0 commit comments