Skip to content

Commit

Permalink
-- fix: "channelOnFail" (dont use it when it's empty)
Browse files Browse the repository at this point in the history
  • Loading branch information
Norbert Graf committed Jan 2, 2018
1 parent bfdf4da commit dad2ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/SlackExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private function sendFailMessage(\PHPUnit_Framework_TestResult $result)
$this->attachExtendedInformation($this->message, $result);
}

$targetChannels = isset($this->channelOnFail) ? $this->channelOnFail : $this->channels;
$targetChannels = (false !== empty($this->channelOnFail)) ? $this->channelOnFail : $this->channels;

foreach ($targetChannels as $channel) {
$this->message->setChannel(trim($channel));
Expand Down

0 comments on commit dad2ebd

Please sign in to comment.