Skip to content

Commit

Permalink
Adding a few mutators
Browse files Browse the repository at this point in the history
  • Loading branch information
lstrojny authored and whatthejeff committed Jan 28, 2014
1 parent 7a85574 commit 13f77b7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,16 @@ public function setDependencies(array $dependencies)
$this->dependencies = $dependencies;
}

/**
* Returns true if the tests has dependencies
*
* @return boolean
*/
public function hasDependencies()
{
return count($this->dependencies) > 0;
}

/**
* Sets
*
Expand Down
22 changes: 22 additions & 0 deletions src/Framework/TestSuite.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,17 @@ public function getGroupDetails()
return $this->groups;
}

/**
* Set tests groups of the test case
*
* @param array $groups
* @since Method available since Release 3.8.0
*/
public function setGroupDetails(array $groups)
{
$this->groups = $groups;
}

/**
* Runs the tests and collects their result in a TestResult.
*
Expand Down Expand Up @@ -794,6 +805,17 @@ public function tests()
return $this->tests;
}

/**
* Set tests of the test suite
*
* @param array $tests
* @since Method available since Release 3.8.0
*/
public function setTests(array $tests)
{
$this->tests = $tests;
}

/**
* Mark the test suite as skipped.
*
Expand Down

0 comments on commit 13f77b7

Please sign in to comment.