Allow pushover to be mocked in reporter
<?php

namespace ScottRobertson\Scrutiny\Reporter;

class Pushover extends Base
{
    private $token;
    private $user;
    public $pushover;

    public function __construct($token, $user, array $subscribe = array('down', 'recovery'))
    {
        // Subscribe to events
        $this->subscribe($subscribe);

        $this->token = $token;
        $this->user = $user;
        $this->pushover = new \scottymeuk\Pushover\Client(
            array(
                'token' => $this->token
            )
        );
    }

    public function report($service)
    {
        $this->pushover->title = $service->getStatusMessage();
        $this->pushover->message = $service->getData('url') . ' returned ' . $service->getData('code');
        $this->pushover->timestamp = $service->getTime();
        $this->pushover->url = $service->getData('url');
        return $this->pushover->push($this->user);
    }
}

<?php

namespace ScottRobertson\Scrutiny\Reporter;

class Pushover extends Base
{
    private $token;
    private $user;
    private $pushover;

    public function __construct($token, $user, array $subscribe = array('down', 'recovery'))
    {
        // Subscribe to events
        $this->subscribe($subscribe);

        $this->token = $token;
        $this->user = $user;
        $this->pushover = new \scottymeuk\Pushover\Client(
            array(
                'token' => $this->token
            )
        );
    }

    public function report($service, $hostname)
    {
        $this->pushover->title = $service->getStatusMessage();
        $this->pushover->message = $service->getData('url') . ' returned ' . $service->getData('code');
        $this->pushover->timestamp = $service->getTime();
        $this->pushover->url = $service->getData('url');
        $this->pushover->push($this->user);
    }
}
