SimpleReporter::paintMethodEnd PHP Method

paintMethodEnd() public method

Will paint the page footer if the stack of tests has unwound.
public paintMethodEnd ( string $test_name )
$test_name string Name of test that is ending.
    public function paintMethodEnd($test_name)
    {
        array_pop($this->test_stack);
    }

Usage Example

 /**
  * Paints the end of a test method being run.  This is used
  * to pause the collection of code coverage if its being used.
  *
  * @param string $method The name of the method being run.
  * @return void
  */
 function paintMethodEnd($method)
 {
     parent::paintMethodEnd($method);
     if (!empty($this->params['codeCoverage'])) {
         CodeCoverageManager::stop();
     }
 }
All Usage Examples Of SimpleReporter::paintMethodEnd