Skip to content

Commit

Permalink
adding the "description" handling to the base Test class
Browse files Browse the repository at this point in the history
  • Loading branch information
enygma committed Nov 14, 2014
1 parent 048583e commit 7e5b37f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/Psecio/Parse/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ abstract class Test
*/
protected $level = 'INFO';

/**
* Test description/summary
* @var string
*/
protected $description = '';

/**
* Init the object and set the logger
*
Expand Down Expand Up @@ -56,6 +62,26 @@ public function setLevel($level)
$this->level = $level;
}

/**
* Get the curernt test's description
*
* @return string Description information
*/
public function getDescription()
{
return $this->description;
}

/**
* Set the description of the current test
*
* @param string $description Test description
*/
public function setDescription($description)
{
$this->description = $description;
}

/**
* Evaluation method to be called to execute the test
*
Expand Down

0 comments on commit 7e5b37f

Please sign in to comment.