PHPUnit2
[ class tree: PHPUnit2 ] [ index: PHPUnit2 ] [ all elements ]

Class: PHPUnit2_Util_Filter

Source Location: /PHPUnit2-3.0.0alpha11/Util/Filter.php

Class Overview


Utility class for code filtering.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 61]
Utility class for code filtering.


[ Top ]


Class Variables

$filteredFiles = array(
      'DEFAULT' => array(),'PHPUNIT'=>array(),'TESTS'=>array(),'PEAR'=>array('Image/GraphViz.php','Log/composite.php','Log/console.php','Log/daemon.php','Log/display.php','Log/error_log.php','Log/file.php','Log/mail.php','Log/mcal.php','Log/mdb2.php','Log/null.php','Log/observer.php','Log/sql.php','Log/sqlite.php','Log/syslog.php','Log/win.php','Log.php','PEAR/Config.php','PEAR.php'))

[line 77]

Source files that are to be filtered.
  • Access: protected

Type:   array


[ Top ]



Method Detail

addFileToFilter   [line 113]

void addFileToFilter( string $filename, [string $group = 'DEFAULT'])

Adds a new file to be filtered.
  • Since: Method available since Release 2.1.0
  • Access: public

Parameters:

string   $filename   — 
string   $group   — 

[ Top ]

getCanonicalFilename   [line 222]

string getCanonicalFilename( string $filename)

Canonicalizes a source file name.
  • Access: protected

Parameters:

string   $filename   — 

[ Top ]

getFilteredCodeCoverage   [line 151]

array getFilteredCodeCoverage( Array $codeCoverageInformation, [boolean $filterTests = TRUE], [boolean $filterPHPUnit = TRUE])

Filters source lines from PHPUnit classes.
  • Access: public

Parameters:

array   $codeCoverageInformation   — 
boolean   $filterTests   — 
boolean   $filterPHPUnit   — 

[ Top ]

getFilteredStacktrace   [line 178]

string getFilteredStacktrace( Exception $e, [boolean $filterTests = TRUE], [boolean $filterPHPUnit = TRUE])

Filters stack frames from PHPUnit classes.
  • Access: public

Parameters:

Exception   $e   — 
boolean   $filterTests   — 
boolean   $filterPHPUnit   — 

[ Top ]

isFiltered   [line 236]

boolean isFiltered( string $filename, [boolean $filterTests = TRUE], [boolean $filterPHPUnit = TRUE])

  • Since: Method available since Release 2.1.3
  • Access: protected

Parameters:

string   $filename   — 
boolean   $filterTests   — 
boolean   $filterPHPUnit   — 

[ Top ]

removeFileFromFilter   [line 127]

void removeFileFromFilter( string $filename, [string $group = 'DEFAULT'])

Removes a file from the filter.
  • Since: Method available since Release 2.1.0
  • Access: public

Parameters:

string   $filename   — 
string   $group   — 

[ Top ]

setFilter   [line 205]

void setFilter( boolean $filter)

Activates or deactivates filtering.
  • Since: Method available since Release 3.0.0
  • Throws: InvalidArgumentException
  • Access: public

Parameters:

boolean   $filter   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:40:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.