Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

make it possible to alias checks and run them invdividually #12

Merged
merged 1 commit into from
Jul 18, 2013

Conversation

lsmith77
Copy link
Contributor

No description provided.

public function getCheck($alias)
{
if (empty($this->checks[$alias])) {
return new \RuntimeException("The no set for the alias '$alias'.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and... throw, not return. :)

weierophinney added a commit that referenced this pull request Jul 18, 2013
…hecks

make it possible to alias checks and run them invdividually
weierophinney added a commit that referenced this pull request Jul 18, 2013
- Added import for RuntimeException
- Changed `return` to `throw` in `getCheck`
- Fixed CS issues (trailing whitespace, EOF marker)
@weierophinney weierophinney merged commit 5c11bfb into feature/runner Jul 18, 2013
@lsmith77 lsmith77 deleted the feature/runner-individual-checks branch July 18, 2013 15:44
@@ -95,15 +95,17 @@ public function __construct($config = null, $checks = null, Reporter $reporter =
*
* @return ResultsCollection The result of running Checks
*/
public function run()
public function run($checkAlias = null)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just noticed i forgot to add the @param

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants