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\Event;
use Doyo\Behat\Coverage\Bridge\CodeCoverage\ProcessorInterface;
use Doyo\Behat\Coverage\Bridge\CodeCoverage\TestCase;
use Doyo\Behat\Coverage\Bridge\Symfony\Event;
class CoverageEvent extends Event
{
const BEFORE_START = 'doyo.coverage.start.pre';
const BEFORE_STOP = 'doyo.coverage.stop.pre';
const BEFORE_REFRESH = 'doyo.coverage.refresh.pre';
const START = 'doyo.coverage.start';
const STOP = 'doyo.coverage.stop';
const REFRESH = 'doyo.coverage.refresh';
const COMPLETED = 'doyo.coverage.completed';
/**
* @var TestCase
private $testCase;
* @var ProcessorInterface
private $processor;
public function __construct(TestCase $testCase = null)
$this->testCase = $testCase;
$this->coverage = [];
coverage
}
* @return TestCase
public function getTestCase()
return $this->testCase;
* @param TestCase $testCase
public function setTestCase($testCase=null)
public function setProcessor($processor)
$this->processor = $processor;
public function getProcessor()
return $this->processor;