From 7e5b37fe74f457fa4f2e557a83f11d0e94786e71 Mon Sep 17 00:00:00 2001 From: Chris Cornutt Date: Fri, 14 Nov 2014 11:07:01 -0500 Subject: [PATCH] adding the "description" handling to the base Test class --- src/Psecio/Parse/Test.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/Psecio/Parse/Test.php b/src/Psecio/Parse/Test.php index 9177f3f..488da8c 100644 --- a/src/Psecio/Parse/Test.php +++ b/src/Psecio/Parse/Test.php @@ -16,6 +16,12 @@ abstract class Test */ protected $level = 'INFO'; + /** + * Test description/summary + * @var string + */ + protected $description = ''; + /** * Init the object and set the logger * @@ -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 *