100% of 67OPs |
100% of 4Lines |
100% of 3Branches |
100% of 3Paths |
Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
---|---|---|---|---|---|---|---|---|
mageekguy\atoum\report\fields\runner\result\notifier\image\growl::getCommand() | 5 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
mageekguy\atoum\report\fields\runner\result\notifier\image\growl::setCallbackUrl() | 9 | 100% | 2 | 100% | 1 | 100% | 1 | 100% |
mageekguy\atoum\report\fields\runner\result\notifier\image\growl::send() | 53 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
# | |
---|---|
1 |
<?php |
2 |
|
3 |
namespace mageekguy\atoum\report\fields\runner\result\notifier\image; |
4 |
|
5 |
use |
6 |
mageekguy\atoum, |
7 |
mageekguy\atoum\exceptions\logic, |
8 |
mageekguy\atoum\report\fields\runner\result\notifier\image |
9 |
; |
10 |
|
11 |
class growl extends image |
12 |
{ |
13 |
protected $callbackUrl = null; |
14 |
|
15 |
protected function getCommand()100% |
16 |
{ |
17 |
return 'growlnotify --title %s --name atoum --message %s --image %s --url %s'; |
18 |
} |
19 |
|
20 |
public function setCallbackUrl($url)100% |
21 |
{ |
22 |
$this->callbackUrl = $url; |
23 |
|
24 |
return $this; |
25 |
} |
26 |
|
27 |
public function send($title, $message, $success)100% |
28 |
{ |
29 |
return $this->adapter->system(sprintf($this->getCommand(), escapeshellarg($title), escapeshellarg($message), escapeshellarg($this->getImage($success)), escapeshellarg($this->callbackUrl))); |
30 |
} |
31 |
} |