for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the doyo/behat-coverage-extension project.
*
* (c) Anthonius Munthi <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Doyo\Behat\Coverage\Bridge\CodeCoverage;
use Doyo\Behat\Coverage\Event\CoverageEvent;
use Doyo\Behat\Coverage\Remote\CoverageRepository;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class RemoteCoverage implements EventSubscriberInterface
{
private $repository;
public function __construct(
CoverageRepository $repository
) {
$this->repository = $repository;
}
public static function getSubscribedEvents()
return [
CoverageEvent::START => 'onCoverageStarted',
CoverageEvent::STOP => ['onCoverageStopped', 999],
CoverageEvent::REFRESH => 'onCoverageRefresh',
];
public function onCoverageStarted()
public function onCoverageStopped()
public function onCoverageRefresh()