Kahlan\Reporter\Reporter::start PHP Method

start() public method

Callback called before any specs processing.
public start ( array $args )
$args array The suite arguments.
    public function start($args)
    {
        $this->_start = $this->_start ?: microtime(true);
        $this->_total = max(1, $args['total']);
    }

Usage Example

Beispiel #1
0
 /**
  * Callback called before any specs processing.
  *
  * @param array $params The suite params array.
  */
 public function start($params)
 {
     parent::start($params);
     if (!$this->_header) {
         return;
     }
     $this->write($this->kahlan() . "\n\n");
     $this->write($this->kahlanBaseline() . "\n", 'd');
     $this->write("\nWorking Directory: ", 'blue');
     $this->write(getcwd() . "\n");
 }