Example #1
0
 /**
  * Constructor of the class
  *
  * @param String $testSuiteName Name of the testsuite
  *
  * @throws {InvalidArgumentException}    If the $testSuiteName param is an empty string.
  *
  * @return Void
  */
 public function __construct($testSuiteName, $user = null)
 {
     if (!empty($testSuiteName)) {
         $this->name = $testSuiteName;
         $testSuiteManager = new TestSuiteManager();
         $this->_testSuiteFile = new SplFileInfo($testSuiteManager->getTestSuitesLocation() . $this->name . '.rb');
     } else {
         throw new InvalidArgumentException('TestSuite constructor needs a string parameter. Input was : ' . $testSuiteName);
     }
     $this->_testCasesMap = array();
     $this->_user = $user;
 }