Integrate pest-plugins with 2 interfaces

integrate pest-plugin package and remove core coverage stuff
This commit is contained in:
johannes.pichler
2020-05-29 11:22:45 +02:00
parent 88d2391d2e
commit b093e8ee29
9 changed files with 71 additions and 333 deletions

View File

@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace Pest\Contracts\Plugins;
use Pest\TestSuite;
use Symfony\Component\Console\Output\OutputInterface;
/**
* @internal
*/
interface AddsOutput
{
/**
* Allows to add custom output after the test suite was executed.
*/
public function addOutput(TestSuite $testSuite, OutputInterface $output, int $testReturnCode): void;
}

View File

@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace Pest\Contracts\Plugins;
use Pest\TestSuite;
/**
* @internal
*/
interface HandlesArguments
{
/**
* Allows to handle custom command line arguments.
*
* PLEASE NOTE: it is necessary to remove any custom argument from the array
* because otherwise the application will complain about them
*
* @param array<int, string> $arguments
*
* @return array<int, string> the updated list of arguments
*/
public function handleArguments(TestSuite $testSuite, array $arguments): array;
}