Skip to content

Commit

Permalink
Use API function getOutput() in UnishTestCase instead of private clas…
Browse files Browse the repository at this point in the history
…s variable
  • Loading branch information
weitzman committed Apr 24, 2014
1 parent 31fa220 commit ae63880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Unish/UnishTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function getOutputAsList() {
* @return stdClass
*/
function getOutputFromJSON($key = NULL) {
$json = json_decode(current($this->_output));
$json = json_decode($this->getOutput());
if (isset($key)) {
$json = $json->{$key}; // http://stackoverflow.com/questions/2925044/hyphens-in-keys-of-object
}
Expand Down

0 comments on commit ae63880

Please sign in to comment.