Skip to content

Commit

Permalink
Adding pretend attributes for better testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pol Dellaiera authored and Pol Dellaiera committed Nov 19, 2016
1 parent 44cde60 commit 18e89bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ protected function buildCommand() {
* The option if exists, an empty array otherwise.
*/
private function optionExists($optionName) {
return array_filter($this->options, function($option) use ($optionName) {
return array_filter($this->options, function ($option) use ($optionName) {
return $option->getName() == $optionName;
});
}
Expand All @@ -610,7 +610,7 @@ private function optionExists($optionName) {
* The option array without the option to remove.
*/
private function optionRemove($optionName) {
$this->options = array_filter($this->options, function($option) use ($optionName) {
$this->options = array_filter($this->options, function ($option) use ($optionName) {
return $option->getName() != $optionName;
});

Expand Down

0 comments on commit 18e89bf

Please sign in to comment.